mirror of
https://github.com/python/cpython.git
synced 2025-10-03 21:55:41 +00:00
[3.11] gh-95174: Handle missing dup() and constants in WASI (GH-95229) (GH-95272)
Co-authored-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
c7ac8b6588
commit
db13c0c1b8
12 changed files with 47 additions and 5 deletions
|
@ -63,6 +63,11 @@ extern void bzero(void *, int);
|
|||
# define SOCKET int
|
||||
#endif
|
||||
|
||||
// WASI SDK 16 does not have POLLPRIO, define as no-op
|
||||
#if defined(__wasi__) && !defined(POLLPRI)
|
||||
# define POLLPRI 0
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
PyObject *close;
|
||||
PyTypeObject *poll_Type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue