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:
Guido van Rossum 1998-05-26 18:38:07 +00:00
parent 9be628338d
commit 90ce848848
1 changed files with 4 additions and 0 deletions

View File

@ -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>