]> granicus.if.org Git - python/commitdiff
Make socketmodule compile again on a modern Linux (that supports Bluetooth).
authorAnthony Baxter <anthonybaxter@gmail.com>
Mon, 16 Feb 2004 05:35:28 +0000 (05:35 +0000)
committerAnthony Baxter <anthonybaxter@gmail.com>
Mon, 16 Feb 2004 05:35:28 +0000 (05:35 +0000)
The Bluetooth code was obviously never tested on Linux.

Modules/socketmodule.c

index 81a65f00854bfe83824ce911604851a293ec754d..818d169da5b7f02568f05d3dfdead4ff2ab10b54 100644 (file)
@@ -331,7 +331,7 @@ const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
 #define _BT_L2_MEMB(sa, memb) ((sa)->l2cap_##memb)
 #define _BT_RC_MEMB(sa, memb) ((sa)->rfcomm_##memb)
 #else
-#define _BT_SOCKADDRMEMB(s, proto) (&((s)->sock_addr).bt_##proto)
+#define _BT_SOCKADDR_MEMB(s, proto) (&((s)->sock_addr).bt_##proto)
 #define _BT_L2_MEMB(sa, memb) ((sa)->l2_##memb)
 #define _BT_RC_MEMB(sa, memb) ((sa)->rc_##memb)
 #define _BT_SCO_MEMB(sa, memb) ((sa)->sco_##memb)