From 19b2369d426d6e5af0a3647a80ed7c43e3a70ece Mon Sep 17 00:00:00 2001 From: Anthony Baxter Date: Wed, 16 Mar 2005 04:15:07 +0000 Subject: Patch #1163249 - Correctly handle _POSIX_SEMAPHORES == -1 to mean no support for posix semaphores. --- Python/thread_pthread.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h index dd1616c..d754005 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) -- cgit v0.12