[Python-checkins] r85352 - in python/branches/py3k: Misc/NEWS Python/thread_pthread.h

antoine.pitrou python-checkins at python.org
Sun Oct 10 10:37:22 CEST 2010


Author: antoine.pitrou
Date: Sun Oct 10 10:37:22 2010
New Revision: 85352

Log:
Issue #10062: Allow building on platforms which do not have sem_timedwait.



Modified:
   python/branches/py3k/Misc/NEWS
   python/branches/py3k/Python/thread_pthread.h

Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS	(original)
+++ python/branches/py3k/Misc/NEWS	Sun Oct 10 10:37:22 2010
@@ -346,6 +346,8 @@
 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
   Akira Kitada.
 

Modified: python/branches/py3k/Python/thread_pthread.h
==============================================================================
--- python/branches/py3k/Python/thread_pthread.h	(original)
+++ python/branches/py3k/Python/thread_pthread.h	Sun Oct 10 10:37:22 2010
@@ -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


More information about the Python-checkins mailing list