Skip to content

Commit bcb2e17

Browse files
author
anthonybaxter
committed
Patch #1163249 - Correctly handle _POSIX_SEMAPHORES == -1 to mean no
support for posix semaphores. git-svn-id: http://svn.python.org/projects/python/trunk@38649 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 96da763 commit bcb2e17

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)