From: Anthony Baxter Date: Mon, 16 Feb 2004 05:35:28 +0000 (+0000) Subject: Make socketmodule compile again on a modern Linux (that supports Bluetooth). X-Git-Tag: v2.4a1~808 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d7c06720dcdc61fd96b5c30bff798849a53cad5;p=python Make socketmodule compile again on a modern Linux (that supports Bluetooth). The Bluetooth code was obviously never tested on Linux. --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 81a65f0085..818d169da5 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -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)