summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-03-11 22:25:14 (GMT)
committerGitHub <noreply@github.com>2022-03-11 22:25:14 (GMT)
commitecfff63e06e77e22035a7f7caa26986f033f3aea (patch)
tree956166c47566051afd5f2c18bdc56863bc2f477c /Modules/socketmodule.c
parent3b128c054885fe881c3b57a5978de3ea89c81a9c (diff)
downloadcpython-ecfff63e06e77e22035a7f7caa26986f033f3aea.zip
cpython-ecfff63e06e77e22035a7f7caa26986f033f3aea.tar.gz
cpython-ecfff63e06e77e22035a7f7caa26986f033f3aea.tar.bz2
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.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 3fca9f6..fbdd1a1 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -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