]> granicus.if.org Git - python/commitdiff
Ugly hack for SGI IRIX 6.2. Apparently _POSIX_THREADS is defined even
authorGuido van Rossum <guido@python.org>
Tue, 29 Apr 1997 21:48:34 +0000 (21:48 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 29 Apr 1997 21:48:34 +0000 (21:48 +0000)
when the pthread package is not installed.  configure knows better, so
#undef _POSIX_THREADS when pthread.h does not exist.

Python/thread.c

index ad7dd5c76d91adc57e8e3467ffb81668f37f95ec..2d042568d5a9c0efc961c62782972c83d9b57240 100644 (file)
@@ -49,6 +49,12 @@ extern char *getenv();
 #include <unistd.h>
 #endif
 
+#ifdef __sgi
+#ifndef HAVE_PTHREAD_H /* XXX Need to check in configure.in */
+#undef _POSIX_THREADS
+#endif
+#endif
+
 #include "thread.h"
 
 #ifdef __ksr__