Document that _POSIX_SEMAPHORES is predefined.

This commit is contained in:
Martin v. Löwis 2002-03-17 17:19:00 +00:00
parent cc89866b65
commit 42ab61eeab
1 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,10 @@
#undef destructor
#endif
#include <signal.h>
/* The POSIX spec says that implementations supporting the sem_*
family of functions must indicate this by defining
_POSIX_SEMAPHORES. */
#ifdef _POSIX_SEMAPHORES
#include <semaphore.h>
#include <errno.h>