aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-07-26 11:16:51 +0200
committerGitHub <noreply@github.com>2022-07-26 11:16:51 +0200
commit0d35a59ce3242b7326890a8c8cc41b321192ec9a (patch)
tree0d165365dff1a2131594c209d16719aca25813eb /pyconfig.h.in
parentgh-95205: Improve WASM README.md (GH-95267) (diff)
downloadcpython-0d35a59ce3242b7326890a8c8cc41b321192ec9a.tar.gz
cpython-0d35a59ce3242b7326890a8c8cc41b321192ec9a.tar.bz2
cpython-0d35a59ce3242b7326890a8c8cc41b321192ec9a.zip
gh-95174: Handle missing dup() and constants in WASI (GH-95229)
- check for ``dup()`` libc function - handle missing ``F_DUPFD`` in ``dup2()`` replacement function - add workaround for WASI libc bug in MSG_TRUNC - ESHUTDOWN is missing, use EPIPE instead - POLLPRI is missing, define as 0 (no-op)
Diffstat (limited to 'pyconfig.h.in')
-rw-r--r--pyconfig.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/pyconfig.h.in b/pyconfig.h.in
index aa9fc559fa2..37f748393e7 100644
--- a/pyconfig.h.in
+++ b/pyconfig.h.in
@@ -278,6 +278,9 @@
/* Define to 1 if you have the `dlopen' function. */
#undef HAVE_DLOPEN
+/* Define to 1 if you have the `dup' function. */
+#undef HAVE_DUP
+
/* Define to 1 if you have the `dup2' function. */
#undef HAVE_DUP2