Mercurial > cpython-lru_cache-weakref
diff Python/thread_pthread.h @ 34824:a50ffe65911b 2.4
Add 0 to _POSIX_SEMAPHORES.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Mon, 28 Mar 2005 12:36:19 +0000 |
| parents | fcb507414c41 |
| children | 5a8bf8e7d010 |
line wrap: on
line diff
--- a/Python/thread_pthread.h Mon Mar 28 09:04:20 2005 +0000 +++ b/Python/thread_pthread.h Mon Mar 28 12:36:19 2005 +0000 @@ -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>
