mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
bpo-40280: Disable AF_UNIX, AF_PACKET, SO_REUSE* on Emscripten (#31829)
Emscripten's socket emulation is limited. AF_UNIX, AF_PACKET, setsockopt(), and most SO_* constants are not supported.
This commit is contained in:
parent
3b128c0548
commit
ecfff63e06
4 changed files with 22 additions and 5 deletions
|
@ -7933,7 +7933,7 @@ PyInit__socket(void)
|
|||
#ifdef IPPROTO_VRRP
|
||||
PyModule_AddIntMacro(m, IPPROTO_VRRP);
|
||||
#endif
|
||||
#if defined(IPPROTO_SCTP) && !defined(__EMSCRIPTEN__)
|
||||
#ifdef IPPROTO_SCTP
|
||||
PyModule_AddIntMacro(m, IPPROTO_SCTP);
|
||||
#endif
|
||||
#ifdef IPPROTO_BIP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue