[issue10062] Python 3.2 does not build on systems which do not have sem_timedwait
Antoine Pitrou
report at bugs.python.org
Sun Oct 10 10:19:31 CEST 2010
Antoine Pitrou <pitrou at free.fr> added the comment:
What about this patch?
Index: Python/thread_pthread.h
===================================================================
--- Python/thread_pthread.h (révision 85348)
+++ Python/thread_pthread.h (copie de travail)
@@ -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
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10062>
_______________________________________
More information about the Python-bugs-list
mailing list