diff options
author | Guido van Rossum <guido@python.org> | 1998-07-07 21:32:53 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-07-07 21:32:53 (GMT) |
commit | e32d1537f0a2629c5a9896b84bfef3b965c8eb99 (patch) | |
tree | af969b916f63c7ef4d569c48853c8c8094752f7c | |
parent | 6b3d77e6a94c60be1ba65e9e9a153d502b4e9da4 (diff) | |
download | cpython-e32d1537f0a2629c5a9896b84bfef3b965c8eb99.zip cpython-e32d1537f0a2629c5a9896b84bfef3b965c8eb99.tar.gz cpython-e32d1537f0a2629c5a9896b84bfef3b965c8eb99.tar.bz2 |
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...)
-rw-r--r-- | Python/mystrtoul.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/mystrtoul.c b/Python/mystrtoul.c index f8135e1..cfe0074 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__ |