From: Guido van Rossum Date: Tue, 26 May 1998 18:38:07 +0000 (+0000) Subject: On SGI, we need to define _SGI_MP_SOURCE before including errno.h when X-Git-Tag: v1.5.2a1~544 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=90ce8488481521e5ddd1fe5ed942e1df4acd6365;p=python On SGI, we need to define _SGI_MP_SOURCE before including errno.h when we are threading, otherwise accessing errno doesn't work right. --- diff --git a/Include/Python.h b/Include/Python.h index 9a18e2d534..f16b47b88b 100644 --- a/Include/Python.h +++ b/Include/Python.h @@ -46,6 +46,10 @@ PERFORMANCE OF THIS SOFTWARE. #define UsingSharedLibs #endif +#if defined(__sgi) && defined(WITH_THREAD) && !defined(_SGI_MP_SOURCE) +#define _SGI_MP_SOURCE +#endif + #include #include #include