bpo-38282: Correctly manage the Bluetooth L2CAP socket structure in FreeBSD (GH-16738)

This commit is contained in:
Pablo Galindo 2019-10-13 02:03:54 +01:00 committed by GitHub
parent 67b93f80c7
commit 27b33fb41a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -235,7 +235,12 @@ typedef union sock_addr {
struct sockaddr_in6 in6; struct sockaddr_in6 in6;
struct sockaddr_storage storage; struct sockaddr_storage storage;
#endif #endif
#ifdef HAVE_BLUETOOTH_BLUETOOTH_H #if defined(HAVE_BLUETOOTH_H) && defined(__FreeBSD__)
struct sockaddr_l2cap bt_l2;
struct sockaddr_rfcomm bt_rc;
struct sockaddr_sco bt_sco;
struct sockaddr_hci bt_hci;
#elif defined(HAVE_BLUETOOTH_BLUETOOTH_H)
struct sockaddr_l2 bt_l2; struct sockaddr_l2 bt_l2;
struct sockaddr_rc bt_rc; struct sockaddr_rc bt_rc;
struct sockaddr_sco bt_sco; struct sockaddr_sco bt_sco;