summaryrefslogtreecommitdiff
path: root/Python/thread_pthread.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-01-21 10:14:41 +0000
committerMartin v. Löwis <martin@v.loewis.de>2003-01-21 10:14:41 +0000
commitf21eaa502af616b4fa87d27a97f69eca85e785b3 (patch)
treecbf553743fb474aa2d70a1518b3ff1c595665257 /Python/thread_pthread.h
parent9090e1859bad223af1a0bef44593b5169f3f40c4 (diff)
downloadcpython-f21eaa502af616b4fa87d27a97f69eca85e785b3.tar.gz
Don't use Posix semaphores on Solaris 8. Fixes #662787.
Diffstat (limited to 'Python/thread_pthread.h')
-rw-r--r--Python/thread_pthread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h
index 80671215ea..e30982fc4f 100644
--- a/Python/thread_pthread.h
+++ b/Python/thread_pthread.h
@@ -104,7 +104,7 @@
/* Whether or not to use semaphores directly rather than emulating them with
* mutexes and condition variables:
*/
-#ifdef _POSIX_SEMAPHORES
+#if defined(_POSIX_SEMAPHORES) && !defined(HAVE_BROKEN_POSIX_SEMAPHORES)
# define USE_SEMAPHORES
#else
# undef USE_SEMAPHORES