From 0fe645d6fd22a6f57e777a29e65cf9a4ff9785ae Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Wed, 27 Jul 2022 20:28:06 +0200 Subject: gh-95174: Add pthread stubs for WASI (GH-95234) Co-authored-by: Brett Cannon --- Python/thread_pthread.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Python/thread_pthread.h') diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h index c310d72abd..1c5b320813 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 +#ifndef HAVE_PTHREAD_STUBS +# include +#endif #if defined(__APPLE__) || defined(HAVE_PTHREAD_DESTRUCTOR) #undef destructor #endif -- cgit v1.2.1