From: Martin v. Löwis Date: Mon, 28 Mar 2005 12:36:19 +0000 (+0000) Subject: Add 0 to _POSIX_SEMAPHORES. X-Git-Tag: v2.4.1~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=465499aad4f7fcf6294262891df43cbe9dc94516;p=thirdparty%2FPython%2Fcpython.git Add 0 to _POSIX_SEMAPHORES. --- diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h index d75400502340..a415a434bee8 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