Mercurial > cpython-lru_cache-weakref
diff Python/thread_pthread.h @ 34762:fcb507414c41 2.4
Patch #1163249 - Correctly handle _POSIX_SEMAPHORES == -1 to mean no
support for posix semaphores.
| author | Anthony Baxter <anthonybaxter@gmail.com> |
|---|---|
| date | Wed, 16 Mar 2005 04:13:29 +0000 |
| parents | 78bd25b42d46 |
| children | a50ffe65911b |
line wrap: on
line diff
--- a/Python/thread_pthread.h Tue Mar 15 23:36:19 2005 +0000 +++ b/Python/thread_pthread.h Wed Mar 16 04:13:29 2005 +0000 @@ -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)
