diff options
author | Christian Heimes <christian@python.org> | 2022-07-26 11:16:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-26 11:16:51 +0200 |
commit | 0d35a59ce3242b7326890a8c8cc41b321192ec9a (patch) | |
tree | 0d165365dff1a2131594c209d16719aca25813eb /pyconfig.h.in | |
parent | gh-95205: Improve WASM README.md (GH-95267) (diff) | |
download | cpython-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.in | 3 |
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 |