summaryrefslogtreecommitdiffstats
path: root/Tools/wasm
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 /Tools/wasm
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 'Tools/wasm')
-rw-r--r--Tools/wasm/config.site-wasm32-emscripten6
1 files changed, 4 insertions, 2 deletions
diff --git a/Tools/wasm/config.site-wasm32-emscripten b/Tools/wasm/config.site-wasm32-emscripten
index 5eaa793..2a60198 100644
--- a/Tools/wasm/config.site-wasm32-emscripten
+++ b/Tools/wasm/config.site-wasm32-emscripten
@@ -74,8 +74,10 @@ ac_cv_func_posix_fallocate=no
ac_cv_func_utimensat=no
ac_cv_header_sys_ioctl_h=no
-# sockets are supported, but only in non-blocking mode
-# ac_cv_header_sys_socket_h=no
+# sockets are supported, but only AF_INET / AF_INET6 in non-blocking mode.
+# Disable AF_UNIX and AF_PACKET support, see socketmodule.h.
+ac_cv_header_sys_un_h=no
+ac_cv_header_netpacket_packet_h=no
# aborts with bad ioctl
ac_cv_func_openpty=no