Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e32d153

Browse files
committed
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...)
1 parent 6b3d77e commit e32d153

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Python/mystrtoul.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ PERFORMANCE OF THIS SOFTWARE.
3131

3232
#include "config.h"
3333

34+
#if defined(__sgi) && defined(WITH_THREAD) && !defined(_SGI_MP_SOURCE)
35+
#define _SGI_MP_SOURCE
36+
#endif
37+
3438
/* Convert a possibly signed character to a nonnegative int */
3539
/* XXX This assumes characters are 8 bits wide */
3640
#ifdef __CHAR_UNSIGNED__

0 commit comments

Comments
 (0)