gh-95174: Add pthread stubs for WASI (GH-95234)

Co-authored-by: Brett Cannon <brett@python.org>
This commit is contained in:
Christian Heimes 2022-07-27 20:28:06 +02:00 committed by GitHub
parent 226d02bb10
commit 0fe645d6fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 332 additions and 41 deletions

View file

@ -588,8 +588,8 @@ def collect_socket(info_add):
try:
hostname = socket.gethostname()
except OSError:
# WASI SDK 15.0 does not have gethostname(2).
except (OSError, AttributeError):
# WASI SDK 16.0 does not have gethostname(2).
if sys.platform != "wasi":
raise
else: