diff options
author | Christian Heimes <christian@python.org> | 2022-06-20 11:34:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-20 11:34:40 (GMT) |
commit | 774ef28814d0d9d57ec813cb31b0a7af6c476127 (patch) | |
tree | b14188c8f6e7a6a789f6f4c2e8f63b5c0e01808b /Modules/socketmodule.c | |
parent | affa9f22cfd1e83a5fb413e5ce2feef9ea1a49ac (diff) | |
download | cpython-774ef28814d0d9d57ec813cb31b0a7af6c476127.zip cpython-774ef28814d0d9d57ec813cb31b0a7af6c476127.tar.gz cpython-774ef28814d0d9d57ec813cb31b0a7af6c476127.tar.bz2 |
gh-84461: Silence some compiler warnings on WASM (GH-93978)
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r-- | Modules/socketmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 002762e..ffa9105 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -1016,6 +1016,7 @@ init_sockobject(PySocketSockObject *s, } +#ifdef HAVE_SOCKETPAIR /* Create a new socket object. This just creates the object and initializes it. If the creation fails, return NULL and set an exception (implicit @@ -1035,6 +1036,7 @@ new_sockobject(SOCKET_T fd, int family, int type, int proto) } return s; } +#endif /* Lock to allow python interpreter to continue, but only allow one |