summaryrefslogtreecommitdiffstats
path: root/Include/cpython/pythread.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/cpython/pythread.h')
-rw-r--r--Include/cpython/pythread.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/cpython/pythread.h b/Include/cpython/pythread.h
index 1fd86a6..ce4ec8f 100644
--- a/Include/cpython/pythread.h
+++ b/Include/cpython/pythread.h
@@ -20,6 +20,9 @@ PyAPI_FUNC(int) _PyThread_at_fork_reinit(PyThread_type_lock *lock);
but hardcode the unsigned long to avoid errors for include directive.
*/
# define NATIVE_TSS_KEY_T unsigned long
+#elif defined(HAVE_PTHREAD_STUBS)
+# include "cpython/pthread_stubs.h"
+# define NATIVE_TSS_KEY_T pthread_key_t
#else
# error "Require native threads. See https://bugs.python.org/issue31370"
#endif