diff Python/thread.c @ 5381:339d4129d3f7 legacy-trunk

Ugly hack for SGI IRIX 6.2. Apparently _POSIX_THREADS is defined even when the pthread package is not installed. configure knows better, so #undef _POSIX_THREADS when pthread.h does not exist.
author Guido van Rossum <guido@python.org>
date Tue, 29 Apr 1997 21:48:34 +0000
parents 4567e158d20c
children b5e51ae9f832
line wrap: on
line diff
--- a/Python/thread.c	Tue Apr 29 21:34:16 1997 +0000
+++ b/Python/thread.c	Tue Apr 29 21:48:34 1997 +0000
@@ -49,6 +49,12 @@
 #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__