[Python-checkins] python/dist/src/Python thread_pthread.h, 2.53,
2.53.4.1
anthonybaxter at users.sourceforge.net
anthonybaxter at users.sourceforge.net
Wed Mar 16 05:13:31 CET 2005
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25872
Modified Files:
Tag: release24-maint
thread_pthread.h
Log Message:
Patch #1163249 - Correctly handle _POSIX_SEMAPHORES == -1 to mean no
support for posix semaphores.
Index: thread_pthread.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/thread_pthread.h,v
retrieving revision 2.53
retrieving revision 2.53.4.1
diff -u -d -r2.53 -r2.53.4.1
--- thread_pthread.h 7 Jul 2004 17:44:12 -0000 2.53
+++ thread_pthread.h 16 Mar 2005 04:13:29 -0000 2.53.4.1
@@ -16,9 +16,13 @@
family of functions must indicate this by defining
_POSIX_SEMAPHORES. */
#ifdef _POSIX_SEMAPHORES
+#if _POSIX_SEMAPHORES == -1
+#define HAVE_BROKEN_POSIX_SEMAPHORES
+#else
#include <semaphore.h>
#include <errno.h>
#endif
+#endif
#if !defined(pthread_attr_default)
# define pthread_attr_default ((pthread_attr_t *)NULL)
More information about the Python-checkins
mailing list