diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2010-10-10 08:37:22 +0000 |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-10-10 08:37:22 +0000 |
| commit | e0d43318123b33c83747fee9593c834171a9faaf (patch) | |
| tree | 7308e23c145055ad2b224f8d4ea4ef4588c4c4f2 /Python/thread_pthread.h | |
| parent | 6a9aad00a1eab2dd7b5f8194c537e628e5ac2f48 (diff) | |
| download | cpython-e0d43318123b33c83747fee9593c834171a9faaf.tar.gz | |
Issue #10062: Allow building on platforms which do not have sem_timedwait.
Diffstat (limited to 'Python/thread_pthread.h')
| -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 a529b7a7eb..c007c8b906 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 |
