mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
[3.11] gh-95174: Add pthread stubs for WASI (GH-95234) (#95503)
Co-authored-by: Brett Cannon <brett@python.org>.
(cherry picked from commit 0fe645d6fd
)
Co-authored-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
9af9ea28e7
commit
e62a0dfab2
17 changed files with 332 additions and 41 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue