diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2005-03-28 12:34:20 +0000 |
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2005-03-28 12:34:20 +0000 |
| commit | d6470ac3d3a01b16570f8610169f3e832585248e (patch) | |
| tree | e0163bc5d9bafc76b4072276cf8829ceba25618c /Python/thread_pthread.h | |
| parent | dd1b052b0b1403570580b5d29f1f20d7ac76ec04 (diff) | |
| download | cpython-d6470ac3d3a01b16570f8610169f3e832585248e.tar.gz | |
Add 0 to _POSIX_SEMAPHORES. Will backport to 2.4.
Diffstat (limited to 'Python/thread_pthread.h')
| -rw-r--r-- | Python/thread_pthread.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h index d754005023..a415a434be 100644 --- a/Python/thread_pthread.h +++ b/Python/thread_pthread.h @@ -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> |
