mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
bpo-40280: Optimize ints and and startup on wasm (GH-29887)
This commit is contained in:
parent
a6c3b0faa1
commit
cb8f491f46
2 changed files with 13 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue