Re-enable the autoconf check for socket.shutdown on Emscripten, as some
Emscripten environments are able to provide this call.
(cherry picked from commit
20b7e8e50b9a4a92989b36531429f9b51ee0a0bf)
Co-authored-by: Gyeongjae Choi <gyeongjae@cloudflare.com>
--- /dev/null
+socket.shutdown function is now enabled for Emscripten builds. However, if the runtime does not implement the shutdown syscall, it will show "Function not implemented" error.
ac_cv_func_memfd_create=no
ac_cv_func_prlimit=no
-# unsupported syscall, https://github.com/emscripten-core/emscripten/issues/13393
-ac_cv_func_shutdown=no
-
# The rest is based on pyodide
# https://github.com/pyodide/pyodide/blob/main/cpython/pyconfig.undefs.h