mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
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:
parent
94f1d71d70
commit
5d7c06720d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue