summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-01-12 15:08:19 (GMT)
committerGitHub <noreply@github.com>2022-01-12 15:08:19 (GMT)
commit43839ba438368a50f22f718d4ce8ce607c17046c (patch)
treed9785a40ccbf9f8a3e8a1614cc6e3f7af3708430 /Modules/socketmodule.c
parentbe578e0c063dad1dbb273f86d5bc77e4e6f14583 (diff)
downloadcpython-43839ba438368a50f22f718d4ce8ce607c17046c.zip
cpython-43839ba438368a50f22f718d4ce8ce607c17046c.tar.gz
cpython-43839ba438368a50f22f718d4ce8ce607c17046c.tar.bz2
bpo-40280: Add --with-emscripten-target to build for browser or node (GH-30552)
Co-authored-by: Ethan Smith <ethan@ethanhs.me>
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 ed83f5c..0e27563 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -7931,7 +7931,7 @@ PyInit__socket(void)
#ifdef IPPROTO_VRRP
PyModule_AddIntMacro(m, IPPROTO_VRRP);
#endif
-#ifdef IPPROTO_SCTP
+#if defined(IPPROTO_SCTP) && !defined(__EMSCRIPTEN__)
PyModule_AddIntMacro(m, IPPROTO_SCTP);
#endif
#ifdef IPPROTO_BIP