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

Skip to content

Commit 90ce848

Browse files
committed
On SGI, we need to define _SGI_MP_SOURCE before including errno.h when
we are threading, otherwise accessing errno doesn't work right.
1 parent 9be6283 commit 90ce848

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Include/Python.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ PERFORMANCE OF THIS SOFTWARE.
4646
#define UsingSharedLibs
4747
#endif
4848

49+
#if defined(__sgi) && defined(WITH_THREAD) && !defined(_SGI_MP_SOURCE)
50+
#define _SGI_MP_SOURCE
51+
#endif
52+
4953
#include <stdio.h>
5054
#include <string.h>
5155
#include <errno.h>

0 commit comments

Comments
 (0)