From: Guido van Rossum Date: Tue, 29 Apr 1997 21:48:34 +0000 (+0000) Subject: Ugly hack for SGI IRIX 6.2. Apparently _POSIX_THREADS is defined even X-Git-Tag: v1.5a1~95 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d11bfdd9f5710efb083898b4377d432be5e4c861;p=python 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. --- diff --git a/Python/thread.c b/Python/thread.c index ad7dd5c76d..2d042568d5 100644 --- a/Python/thread.c +++ b/Python/thread.c @@ -49,6 +49,12 @@ extern char *getenv(); #include #endif +#ifdef __sgi +#ifndef HAVE_PTHREAD_H /* XXX Need to check in configure.in */ +#undef _POSIX_THREADS +#endif +#endif + #include "thread.h" #ifdef __ksr__