summaryrefslogtreecommitdiff
path: root/Python/mystrtoul.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-07-07 21:32:53 +0000
committerGuido van Rossum <guido@python.org>1998-07-07 21:32:53 +0000
commitf36f07f83ab1b6a4d9aeb628eee276bc760ce84f (patch)
tree5451cca714f229ce0a45397961bfa3e03410e0ef /Python/mystrtoul.c
parentfdb7f9c4bc0131f76aa9ea242b25eb40c1f683b3 (diff)
downloadcpython-f36f07f83ab1b6a4d9aeb628eee276bc760ce84f.tar.gz
Sigh. The hack to enable special treatment for errno on SGI machines
must be enabled here, otherwise the errno we set on overflows is not the errno that's being read by compile.c. Wonder how many other files that do their own "#include config.h" need this too :-( (Because of the structure of autoconf, it's not so simple to get this into config.h...)
Diffstat (limited to 'Python/mystrtoul.c')
-rw-r--r--Python/mystrtoul.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/mystrtoul.c b/Python/mystrtoul.c
index f8135e1761..cfe007454d 100644
--- a/Python/mystrtoul.c
+++ b/Python/mystrtoul.c
@@ -31,6 +31,10 @@ PERFORMANCE OF THIS SOFTWARE.
#include "config.h"
+#if defined(__sgi) && defined(WITH_THREAD) && !defined(_SGI_MP_SOURCE)
+#define _SGI_MP_SOURCE
+#endif
+
/* Convert a possibly signed character to a nonnegative int */
/* XXX This assumes characters are 8 bits wide */
#ifdef __CHAR_UNSIGNED__