From 4eebb382ccb41959a39133f6ccc9f865edcbbeb5 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Tue, 21 Jul 2026 03:05:04 +0200 Subject: [PATCH] [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 --- .../Library/2026-04-17-05-58-27.gh-issue-148665.AlUajE.rst | 1 + Platforms/emscripten/config.site-wasm32-emscripten | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) create mode 100644 Misc/NEWS.d/next/Library/2026-04-17-05-58-27.gh-issue-148665.AlUajE.rst 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 -- 2.47.3