From: Anthony Baxter Date: Wed, 16 Mar 2005 04:13:29 +0000 (+0000) Subject: Patch #1163249 - Correctly handle _POSIX_SEMAPHORES == -1 to mean no X-Git-Tag: v2.4.1c2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=11da5d5e6f4b0bec88e463d571ba65adc7dda948;p=thirdparty%2FPython%2Fcpython.git Patch #1163249 - Correctly handle _POSIX_SEMAPHORES == -1 to mean no support for posix semaphores. --- diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h index dd1616c71642..d75400502340 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 #include #endif +#endif #if !defined(pthread_attr_default) # define pthread_attr_default ((pthread_attr_t *)NULL)