diff options
| author | Christian Heimes <christian@python.org> | 2021-12-02 11:19:30 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-02 11:19:30 (GMT) |
| commit | cb8f491f46e262549f6c447b31625cab7c20a60a (patch) | |
| tree | a476521e1a746f42667312ceb8dd9866feb9654e /Python/pylifecycle.c | |
| parent | a6c3b0faa1d55e36539caf19bd3bcf1dea12df84 (diff) | |
| download | cpython-cb8f491f46e262549f6c447b31625cab7c20a60a.zip cpython-cb8f491f46e262549f6c447b31625cab7c20a60a.tar.gz cpython-cb8f491f46e262549f6c447b31625cab7c20a60a.tar.bz2 | |
bpo-40280: Optimize ints and and startup on wasm (GH-29887)
Diffstat (limited to 'Python/pylifecycle.c')
| -rw-r--r-- | Python/pylifecycle.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 74d269b..c6b2a1e 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -2145,7 +2145,11 @@ is_valid_fd(int fd) if (fd < 0) { return 0; } -#if defined(F_GETFD) && (defined(__linux__) || defined(__APPLE__) || defined(MS_WINDOWS)) +#if defined(F_GETFD) && ( \ + defined(__linux__) || \ + defined(__APPLE__) || \ + defined(MS_WINDOWS) || \ + defined(__wasm__)) int res; _Py_BEGIN_SUPPRESS_IPH res = fcntl(fd, F_GETFD); |
