Thanks to visit codestin.com Credit goes to github.com
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 0c89056 commit 9df6712Copy full SHA for 9df6712
1 file changed
Include/internal/pycore_semaphore.h
@@ -20,7 +20,8 @@
20
# error "Require native threads. See https://bugs.python.org/issue31370"
21
#endif
22
23
-#if defined(_POSIX_SEMAPHORES) && (_POSIX_SEMAPHORES+0) != -1
+#if (defined(_POSIX_SEMAPHORES) && (_POSIX_SEMAPHORES+0) != -1 && \
24
+ defined(HAVE_SEM_TIMEDWAIT))
25
# define _Py_USE_SEMAPHORES
26
# include <semaphore.h>
27
0 commit comments