Skip to content

Commit afe5507

Browse files
committed
include what you use for pause()
1 parent 87249ab commit afe5507

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Python/thread_pthread.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,14 @@
1616
#undef destructor
1717
#endif
1818
#include <signal.h>
19+
#include <unistd.h> /* pause(), also getthrid() on OpenBSD */
1920

2021
#if defined(__linux__)
2122
# include <sys/syscall.h> /* syscall(SYS_gettid) */
2223
#elif defined(__FreeBSD__)
2324
# include <pthread_np.h> /* pthread_getthreadid_np() */
2425
#elif defined(__FreeBSD_kernel__)
2526
# include <sys/syscall.h> /* syscall(SYS_thr_self) */
26-
#elif defined(__OpenBSD__)
27-
# include <unistd.h> /* getthrid() */
2827
#elif defined(_AIX)
2928
# include <sys/thread.h> /* thread_self() */
3029
#elif defined(__NetBSD__)

0 commit comments

Comments
 (0)