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

Skip to content

Commit 42ab61e

Browse files
committed
Document that _POSIX_SEMAPHORES is predefined.
1 parent cc89866 commit 42ab61e

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
@@ -11,6 +11,10 @@
1111
#undef destructor
1212
#endif
1313
#include <signal.h>
14+
15+
/* The POSIX spec says that implementations supporting the sem_*
16+
family of functions must indicate this by defining
17+
_POSIX_SEMAPHORES. */
1418
#ifdef _POSIX_SEMAPHORES
1519
#include <semaphore.h>
1620
#include <errno.h>

0 commit comments

Comments
 (0)