Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 19b2369

Browse files
committed
Patch #1163249 - Correctly handle _POSIX_SEMAPHORES == -1 to mean no
support for posix semaphores.
1 parent 9f5f9d9 commit 19b2369

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Python/thread_pthread.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@
1616
family of functions must indicate this by defining
1717
_POSIX_SEMAPHORES. */
1818
#ifdef _POSIX_SEMAPHORES
19+
#if _POSIX_SEMAPHORES == -1
20+
#define HAVE_BROKEN_POSIX_SEMAPHORES
21+
#else
1922
#include <semaphore.h>
2023
#include <errno.h>
2124
#endif
25+
#endif
2226

2327
#if !defined(pthread_attr_default)
2428
# define pthread_attr_default ((pthread_attr_t *)NULL)

0 commit comments

Comments
 (0)