diff options
author | Christian Heimes <christian@python.org> | 2022-08-01 14:37:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-01 14:37:45 (GMT) |
commit | e62a0dfab2bbc29324ca1879e287fff7fa8f21e0 (patch) | |
tree | 024357a512b6fa49ce42c8c331de3d2e56851bc2 /Python/thread_pthread.h | |
parent | 9af9ea28e756a8a1961b065856c697fc1262ca82 (diff) | |
download | cpython-e62a0dfab2bbc29324ca1879e287fff7fa8f21e0.zip cpython-e62a0dfab2bbc29324ca1879e287fff7fa8f21e0.tar.gz cpython-e62a0dfab2bbc29324ca1879e287fff7fa8f21e0.tar.bz2 |
[3.11] gh-95174: Add pthread stubs for WASI (GH-95234) (#95503)
Co-authored-by: Brett Cannon <brett@python.org>.
(cherry picked from commit 0fe645d6fd22a6f57e777a29e65cf9a4ff9785ae)
Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Python/thread_pthread.h')
-rw-r--r-- | Python/thread_pthread.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h index 02c8427..ddc28c4 100644 --- a/Python/thread_pthread.h +++ b/Python/thread_pthread.h @@ -7,7 +7,9 @@ #if defined(__APPLE__) || defined(HAVE_PTHREAD_DESTRUCTOR) #define destructor xxdestructor #endif -#include <pthread.h> +#ifndef HAVE_PTHREAD_STUBS +# include <pthread.h> +#endif #if defined(__APPLE__) || defined(HAVE_PTHREAD_DESTRUCTOR) #undef destructor #endif |