[Python-checkins] r51260 - python/branches/release24-maint/Modules/socketmodule.c
matt.fleming
python-checkins at python.org
Sun Aug 13 23:41:29 CEST 2006
Author: matt.fleming
Date: Sun Aug 13 23:41:29 2006
New Revision: 51260
Modified:
python/branches/release24-maint/Modules/socketmodule.c
Log:
Backport a patch applied to trunk that allows Python to compile with
NetBSD's bluetooth API.
Modified: python/branches/release24-maint/Modules/socketmodule.c
==============================================================================
--- python/branches/release24-maint/Modules/socketmodule.c (original)
+++ python/branches/release24-maint/Modules/socketmodule.c Sun Aug 13 23:41:29 2006
@@ -351,6 +351,14 @@
#define _BT_SOCKADDR_MEMB(s, proto) &((s)->sock_addr)
#define _BT_L2_MEMB(sa, memb) ((sa)->l2cap_##memb)
#define _BT_RC_MEMB(sa, memb) ((sa)->rfcomm_##memb)
+#elif defined(__NetBSD__)
+#define sockaddr_l2 sockaddr_bt
+#define sockaddr_rc sockaddr_bt
+#define sockaddr_sco sockaddr_bt
+#define _BT_SOCKADDR_MEMB(s, proto) &((s)->sock_addr)
+#define _BT_L2_MEMB(sa, memb) ((sa)->bt_##memb)
+#define _BT_RC_MEMB(sa, memb) ((sa)->bt_##memb)
+#define _BT_SCO_MEMB(sa, memb) ((sa)->bt_##memb)
#else
#define _BT_SOCKADDR_MEMB(s, proto) (&((s)->sock_addr).bt_##proto)
#define _BT_L2_MEMB(sa, memb) ((sa)->l2_##memb)
More information about the Python-checkins
mailing list