diff options
Diffstat (limited to 'Include/internal/pycore_condvar.h')
-rw-r--r-- | Include/internal/pycore_condvar.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/Include/internal/pycore_condvar.h b/Include/internal/pycore_condvar.h index 489e67d..34c21aa 100644 --- a/Include/internal/pycore_condvar.h +++ b/Include/internal/pycore_condvar.h @@ -5,18 +5,8 @@ # error "this header requires Py_BUILD_CORE define" #endif -#ifndef MS_WINDOWS -# include <unistd.h> // _POSIX_THREADS -#endif +#include "pycore_pythread.h" // _POSIX_THREADS -#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 #ifdef _POSIX_THREADS /* |