From 90ce8488481521e5ddd1fe5ed942e1df4acd6365 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 26 May 1998 18:38:07 +0000 Subject: On SGI, we need to define _SGI_MP_SOURCE before including errno.h when we are threading, otherwise accessing errno doesn't work right. --- Include/Python.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Include/Python.h b/Include/Python.h index 9a18e2d..f16b47b 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 -- cgit v0.12