mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
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.
This commit is contained in:
parent
1ed5e57684
commit
d11bfdd9f5
1 changed files with 6 additions and 0 deletions
|
@ -49,6 +49,12 @@ extern char *getenv();
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __sgi
|
||||||
|
#ifndef HAVE_PTHREAD_H /* XXX Need to check in configure.in */
|
||||||
|
#undef _POSIX_THREADS
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "thread.h"
|
#include "thread.h"
|
||||||
|
|
||||||
#ifdef __ksr__
|
#ifdef __ksr__
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue