We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bf29b7 commit 19f8edcCopy full SHA for 19f8edc
Misc/NEWS
@@ -346,6 +346,8 @@ Tests
346
Build
347
-----
348
349
+- Issue #10062: Allow building on platforms which do not have sem_timedwait.
350
+
351
- Issue #10054: Some platforms provide uintptr_t in inttypes.h. Patch by
352
Akira Kitada.
353
Python/thread_pthread.h
@@ -64,7 +64,8 @@
64
/* Whether or not to use semaphores directly rather than emulating them with
65
* mutexes and condition variables:
66
*/
67
-#if defined(_POSIX_SEMAPHORES) && !defined(HAVE_BROKEN_POSIX_SEMAPHORES)
+#if (defined(_POSIX_SEMAPHORES) && !defined(HAVE_BROKEN_POSIX_SEMAPHORES) && \
68
+ defined(HAVE_SEM_TIMEDWAIT))
69
# define USE_SEMAPHORES
70
#else
71
# undef USE_SEMAPHORES
0 commit comments