[Python-checkins] python/dist/src/Python thread_pthread.h, 2.54, 2.55

loewis at users.sourceforge.net loewis at users.sourceforge.net
Mon Mar 28 14:34:22 CEST 2005


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31906/Python

Modified Files:
	thread_pthread.h 
Log Message:
Add 0 to _POSIX_SEMAPHORES. Will backport to 2.4.


Index: thread_pthread.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/thread_pthread.h,v
retrieving revision 2.54
retrieving revision 2.55
diff -u -d -r2.54 -r2.55
--- thread_pthread.h	16 Mar 2005 04:15:07 -0000	2.54
+++ thread_pthread.h	28 Mar 2005 12:34:20 -0000	2.55
@@ -16,7 +16,9 @@
    family of functions must indicate this by defining
    _POSIX_SEMAPHORES. */   
 #ifdef _POSIX_SEMAPHORES
-#if _POSIX_SEMAPHORES == -1
+/* On FreeBSD 4.x, _POSIX_SEMAPHORES is defined empty, so 
+   we need to add 0 to make it work there as well. */
+#if (_POSIX_SEMAPHORES+0) == -1
 #define HAVE_BROKEN_POSIX_SEMAPHORES
 #else
 #include <semaphore.h>



More information about the Python-checkins mailing list