diff options
| author | Anthony Baxter <anthonybaxter@gmail.com> | 2005-03-16 04:15:07 +0000 |
|---|---|---|
| committer | Anthony Baxter <anthonybaxter@gmail.com> | 2005-03-16 04:15:07 +0000 |
| commit | c9a3f9d0c54dcbe495c4ba19de9cf505fcbbdf72 (patch) | |
| tree | 55ba1b12e8392fcbd5c6dc61dae3744d88ddc21f /Python | |
| parent | 72d3ab746f663132b3929397d6ca6151da7159c0 (diff) | |
| download | cpython-c9a3f9d0c54dcbe495c4ba19de9cf505fcbbdf72.tar.gz | |
Patch #1163249 - Correctly handle _POSIX_SEMAPHORES == -1 to mean no
support for posix semaphores.
Diffstat (limited to 'Python')
| -rw-r--r-- | Python/thread_pthread.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h index dd1616c716..d754005023 100644 --- a/Python/thread_pthread.h +++ b/Python/thread_pthread.h @@ -16,9 +16,13 @@ family of functions must indicate this by defining _POSIX_SEMAPHORES. */ #ifdef _POSIX_SEMAPHORES +#if _POSIX_SEMAPHORES == -1 +#define HAVE_BROKEN_POSIX_SEMAPHORES +#else #include <semaphore.h> #include <errno.h> #endif +#endif #if !defined(pthread_attr_default) # define pthread_attr_default ((pthread_attr_t *)NULL) |
