mirror of
https://github.com/python/cpython
synced 2026-09-28 09:28:17 +03:00
On SGI, we need to define _SGI_MP_SOURCE before including errno.h when
we are threading, otherwise accessing errno doesn't work right.
This commit is contained in:
parent
9be628338d
commit
90ce848848
1 changed files with 4 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue