summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-05-26 18:38:07 (GMT)
committerGuido van Rossum <guido@python.org>1998-05-26 18:38:07 (GMT)
commit90ce8488481521e5ddd1fe5ed942e1df4acd6365 (patch)
tree4399f7f61c3fb22ebe335657cdbdec9edd43b0d1 /Include
parent9be628338def23e88691fbb3ca28804ea8e48a28 (diff)
downloadcpython-90ce8488481521e5ddd1fe5ed942e1df4acd6365.zip
cpython-90ce8488481521e5ddd1fe5ed942e1df4acd6365.tar.gz
cpython-90ce8488481521e5ddd1fe5ed942e1df4acd6365.tar.bz2
On SGI, we need to define _SGI_MP_SOURCE before including errno.h when
we are threading, otherwise accessing errno doesn't work right.
Diffstat (limited to 'Include')
-rw-r--r--Include/Python.h4
1 files changed, 4 insertions, 0 deletions
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 <stdio.h>
#include <string.h>
#include <errno.h>