From 8b8fb3db5a3dd7f2d2111d493f9dc94fff234eaa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Mon, 28 Mar 2005 12:34:20 +0000 Subject: [PATCH] Add 0 to _POSIX_SEMAPHORES. Will backport to 2.4. --- Python/thread_pthread.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.40.0