We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87249ab commit afe5507Copy full SHA for afe5507
Python/thread_pthread.h
@@ -16,15 +16,14 @@
16
#undef destructor
17
#endif
18
#include <signal.h>
19
+#include <unistd.h> /* pause(), also getthrid() on OpenBSD */
20
21
#if defined(__linux__)
22
# include <sys/syscall.h> /* syscall(SYS_gettid) */
23
#elif defined(__FreeBSD__)
24
# include <pthread_np.h> /* pthread_getthreadid_np() */
25
#elif defined(__FreeBSD_kernel__)
26
# include <sys/syscall.h> /* syscall(SYS_thr_self) */
-#elif defined(__OpenBSD__)
27
-# include <unistd.h> /* getthrid() */
28
#elif defined(_AIX)
29
# include <sys/thread.h> /* thread_self() */
30
#elif defined(__NetBSD__)
0 commit comments