diff options
author | Christian Heimes <christian@python.org> | 2022-07-26 09:16:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-26 09:16:51 (GMT) |
commit | 0d35a59ce3242b7326890a8c8cc41b321192ec9a (patch) | |
tree | 0d165365dff1a2131594c209d16719aca25813eb /PC | |
parent | e8f3e8f0ab8aa5d667229ce9694e6e1477e524fd (diff) | |
download | cpython-0d35a59ce3242b7326890a8c8cc41b321192ec9a.zip cpython-0d35a59ce3242b7326890a8c8cc41b321192ec9a.tar.gz cpython-0d35a59ce3242b7326890a8c8cc41b321192ec9a.tar.bz2 |
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 'PC')
-rw-r--r-- | PC/pyconfig.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h index 87d55fa..1135a12 100644 --- a/PC/pyconfig.h +++ b/PC/pyconfig.h @@ -678,6 +678,9 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */ /* Define if you have the 'inet_pton' function. */ #define HAVE_INET_PTON 1 +/* Define to 1 if you have the `dup' function. */ +#define HAVE_DUP 1 + /* framework name */ #define _PYTHONFRAMEWORK "" |