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 0f26054 commit 8b8fb3dCopy full SHA for 8b8fb3d
1 file changed
Python/thread_pthread.h
@@ -16,7 +16,9 @@
16
family of functions must indicate this by defining
17
_POSIX_SEMAPHORES. */
18
#ifdef _POSIX_SEMAPHORES
19
-#if _POSIX_SEMAPHORES == -1
+/* On FreeBSD 4.x, _POSIX_SEMAPHORES is defined empty, so
20
+ we need to add 0 to make it work there as well. */
21
+#if (_POSIX_SEMAPHORES+0) == -1
22
#define HAVE_BROKEN_POSIX_SEMAPHORES
23
#else
24
#include <semaphore.h>
0 commit comments