Make socketmodule compile again on a modern Linux (that supports Bluetooth).

The Bluetooth code was obviously never tested on Linux.
This commit is contained in:
Anthony Baxter 2004-02-16 05:35:28 +00:00
parent 94f1d71d70
commit 5d7c06720d

View 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)