mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Add 0 to _POSIX_SEMAPHORES. Will backport to 2.4.
This commit is contained in:
parent
0f26054736
commit
8b8fb3db5a
1 changed files with 3 additions and 1 deletions
|
@ -16,7 +16,9 @@
|
|||
family of functions must indicate this by defining
|
||||
_POSIX_SEMAPHORES. */
|
||||
#ifdef _POSIX_SEMAPHORES
|
||||
#if _POSIX_SEMAPHORES == -1
|
||||
/* On FreeBSD 4.x, _POSIX_SEMAPHORES is defined empty, so
|
||||
we need to add 0 to make it work there as well. */
|
||||
#if (_POSIX_SEMAPHORES+0) == -1
|
||||
#define HAVE_BROKEN_POSIX_SEMAPHORES
|
||||
#else
|
||||
#include <semaphore.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue