]> granicus.if.org Git - python/commitdiff
On SGI, we need to define _SGI_MP_SOURCE before including errno.h when
authorGuido van Rossum <guido@python.org>
Tue, 26 May 1998 18:38:07 +0000 (18:38 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 26 May 1998 18:38:07 +0000 (18:38 +0000)
we are threading, otherwise accessing errno doesn't work right.

Include/Python.h

index 9a18e2d534878b7d59baa7ed03fc8f1d3ea8d965..f16b47b88b357150359ecc99d20d16fe5aaee812 100644 (file)
@@ -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 <stdio.h>
 #include <string.h>
 #include <errno.h>