summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.h
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2019-10-13 01:03:54 (GMT)
committerGitHub <noreply@github.com>2019-10-13 01:03:54 (GMT)
commit27b33fb41a7c64a6211d73d14804aa0cd6defccb (patch)
treed3ec9c99ee577cbf17f8d824245c55d27faa9e71 /Modules/socketmodule.h
parent67b93f80c764bca01c81c989d74a99df208bea4d (diff)
downloadcpython-27b33fb41a7c64a6211d73d14804aa0cd6defccb.zip
cpython-27b33fb41a7c64a6211d73d14804aa0cd6defccb.tar.gz
cpython-27b33fb41a7c64a6211d73d14804aa0cd6defccb.tar.bz2
bpo-38282: Correctly manage the Bluetooth L2CAP socket structure in FreeBSD (GH-16738)
Diffstat (limited to 'Modules/socketmodule.h')
-rw-r--r--Modules/socketmodule.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h
index e06e4c3..7684e59 100644
--- a/Modules/socketmodule.h
+++ b/Modules/socketmodule.h
@@ -235,7 +235,12 @@ typedef union sock_addr {
struct sockaddr_in6 in6;
struct sockaddr_storage storage;
#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_rc bt_rc;
struct sockaddr_sco bt_sco;