mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #10062: Allow building on platforms which do not have sem_timedwait.
This commit is contained in:
parent
1bf29b7da7
commit
19f8edc39d
2 changed files with 4 additions and 1 deletions
|
@ -346,6 +346,8 @@ Tests
|
||||||
Build
|
Build
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
- Issue #10062: Allow building on platforms which do not have sem_timedwait.
|
||||||
|
|
||||||
- Issue #10054: Some platforms provide uintptr_t in inttypes.h. Patch by
|
- Issue #10054: Some platforms provide uintptr_t in inttypes.h. Patch by
|
||||||
Akira Kitada.
|
Akira Kitada.
|
||||||
|
|
||||||
|
|
|
@ -64,7 +64,8 @@
|
||||||
/* Whether or not to use semaphores directly rather than emulating them with
|
/* Whether or not to use semaphores directly rather than emulating them with
|
||||||
* mutexes and condition variables:
|
* 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
|
# define USE_SEMAPHORES
|
||||||
#else
|
#else
|
||||||
# undef USE_SEMAPHORES
|
# undef USE_SEMAPHORES
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue