From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 21 Jul 2026 01:05:04 +0000 (+0200) Subject: [3.15] gh-148665: Enable socket.shutdown function for emscripten (GH-148666) (#154319) X-Git-Url: http://git.ipfire.org/index.cgi?a=commitdiff_plain;h=4eebb382ccb41959a39133f6ccc9f865edcbbeb5;p=thirdparty%2FPython%2Fcpython.git [3.15] gh-148665: Enable socket.shutdown function for emscripten (GH-148666) (#154319) 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 --- diff --git a/Misc/NEWS.d/next/Library/2026-04-17-05-58-27.gh-issue-148665.AlUajE.rst b/Misc/NEWS.d/next/Library/2026-04-17-05-58-27.gh-issue-148665.AlUajE.rst new file mode 100644 index 000000000000..db7736f1ae6e --- /dev/null +++ b/Misc/NEWS.d/next/Library/2026-04-17-05-58-27.gh-issue-148665.AlUajE.rst @@ -0,0 +1 @@ +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. diff --git a/Platforms/emscripten/config.site-wasm32-emscripten b/Platforms/emscripten/config.site-wasm32-emscripten index f69dbb8e779a..3c9a1c2c2568 100644 --- a/Platforms/emscripten/config.site-wasm32-emscripten +++ b/Platforms/emscripten/config.site-wasm32-emscripten @@ -21,9 +21,6 @@ ac_cv_func_eventfd=no 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