diff options
author | Christian Heimes <christian@python.org> | 2022-01-12 15:08:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-12 15:08:19 (GMT) |
commit | 43839ba438368a50f22f718d4ce8ce607c17046c (patch) | |
tree | d9785a40ccbf9f8a3e8a1614cc6e3f7af3708430 /Modules/socketmodule.c | |
parent | be578e0c063dad1dbb273f86d5bc77e4e6f14583 (diff) | |
download | cpython-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.c | 2 |
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 |