Mercurial > cpython-lru_cache-weakref
diff Include/Python.h @ 8429:f7c58ed2981d legacy-trunk
On SGI, we need to define _SGI_MP_SOURCE before including errno.h when
we are threading, otherwise accessing errno doesn't work right.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 26 May 1998 18:38:07 +0000 |
| parents | 5da18e002b1a |
| children | c39218a68df1 |
line wrap: on
line diff
--- a/Include/Python.h Tue May 26 15:06:32 1998 +0000 +++ b/Include/Python.h Tue May 26 18:38:07 1998 +0000 @@ -46,6 +46,10 @@ #define UsingSharedLibs #endif +#if defined(__sgi) && defined(WITH_THREAD) && !defined(_SGI_MP_SOURCE) +#define _SGI_MP_SOURCE +#endif + #include <stdio.h> #include <string.h> #include <errno.h>
