diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-10-10 08:37:22 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-10-10 08:37:22 (GMT) |
commit | 19f8edc39d344b12f8b60c3c23bdfb8e523593b7 (patch) | |
tree | 7d6c189ff1dafb20dc3837ddb37e203f9ee97012 /Python | |
parent | 1bf29b7da72e32db56458952a33772a9773b535a (diff) | |
download | cpython-19f8edc39d344b12f8b60c3c23bdfb8e523593b7.zip cpython-19f8edc39d344b12f8b60c3c23bdfb8e523593b7.tar.gz cpython-19f8edc39d344b12f8b60c3c23bdfb8e523593b7.tar.bz2 |
Issue #10062: Allow building on platforms which do not have sem_timedwait.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/thread_pthread.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h index a529b7a..c007c8b 100644 --- a/Python/thread_pthread.h +++ b/Python/thread_pthread.h @@ -64,7 +64,8 @@ /* Whether or not to use semaphores directly rather than emulating them with * mutexes and condition variables: */ -#if defined(_POSIX_SEMAPHORES) && !defined(HAVE_BROKEN_POSIX_SEMAPHORES) +#if (defined(_POSIX_SEMAPHORES) && !defined(HAVE_BROKEN_POSIX_SEMAPHORES) && \ + defined(HAVE_SEM_TIMEDWAIT)) # define USE_SEMAPHORES #else # undef USE_SEMAPHORES |