diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/thread.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Python/thread.c b/Python/thread.c index 8bc958f..0294365 100644 --- a/Python/thread.c +++ b/Python/thread.c @@ -7,6 +7,16 @@ #include "Python.h" + +#ifndef _POSIX_THREADS +/* This means pthreads are not implemented in libc headers, hence the macro + not present in unistd.h. But they still can be implemented as an external + library (e.g. gnu pth in pthread emulation) */ +# ifdef HAVE_PTHREAD_H +# include <pthread.h> /* _POSIX_THREADS */ +# endif +#endif + #ifndef DONT_HAVE_STDIO_H #include <stdio.h> #endif |