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

Pablo Galindo webhook-mailer at python.org
Sat Oct 12 21:03:58 EDT 2019


https://github.com/python/cpython/commit/27b33fb41a7c64a6211d73d14804aa0cd6defccb
commit: 27b33fb41a7c64a6211d73d14804aa0cd6defccb
branch: master
author: Pablo Galindo <Pablogsal at gmail.com>
committer: GitHub <noreply at github.com>
date: 2019年10月13日T02:03:54+01:00
summary:
bpo-38282: Correctly manage the Bluetooth L2CAP socket structure in FreeBSD (GH-16738)
files:
M Modules/socketmodule.h
diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h
index e06e4c388827e..7684e59cd4546 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;


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /