Patch #1163249 - Correctly handle _POSIX_SEMAPHORES == -1 to mean no

support for posix semaphores.
This commit is contained in:
Anthony Baxter 2005-03-16 04:15:07 +00:00
parent 9f5f9d943d
commit 19b2369d42
1 changed files with 4 additions and 0 deletions

View File

@ -16,9 +16,13 @@
family of functions must indicate this by defining family of functions must indicate this by defining
_POSIX_SEMAPHORES. */ _POSIX_SEMAPHORES. */
#ifdef _POSIX_SEMAPHORES #ifdef _POSIX_SEMAPHORES
#if _POSIX_SEMAPHORES == -1
#define HAVE_BROKEN_POSIX_SEMAPHORES
#else
#include <semaphore.h> #include <semaphore.h>
#include <errno.h> #include <errno.h>
#endif #endif
#endif
#if !defined(pthread_attr_default) #if !defined(pthread_attr_default)
# define pthread_attr_default ((pthread_attr_t *)NULL) # define pthread_attr_default ((pthread_attr_t *)NULL)