Skip to content

Commit cfc52eb

Browse files
ryanking13miss-islington
authored andcommitted
gh-148665: Enable socket.shutdown function for emscripten (GH-148666)
Re-enable the autoconf check for socket.shutdown on Emscripten, as some Emscripten environments are able to provide this call. (cherry picked from commit 20b7e8e) Co-authored-by: Gyeongjae Choi <gyeongjae@cloudflare.com>
1 parent d1494f0 commit cfc52eb

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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.

Platforms/emscripten/config.site-wasm32-emscripten

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ ac_cv_func_eventfd=no
2121
ac_cv_func_memfd_create=no
2222
ac_cv_func_prlimit=no
2323

24-
# unsupported syscall, https://github.com/emscripten-core/emscripten/issues/13393
25-
ac_cv_func_shutdown=no
26-
2724
# The rest is based on pyodide
2825
# https://github.com/pyodide/pyodide/blob/main/cpython/pyconfig.undefs.h
2926

0 commit comments

Comments
 (0)