diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-09-19 08:03:21 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-09-19 08:03:21 (GMT) |
commit | 8eb92a014be020c99dad91ad2f7a8cbdcfa33d86 (patch) | |
tree | baa0d91b127a1b24ad0f66f0c954662765268eaf /Modules/socketmodule.c | |
parent | c34c4fc3ab497ec1dd4f8c921798927d1b6d13e2 (diff) | |
download | cpython-8eb92a014be020c99dad91ad2f7a8cbdcfa33d86.zip cpython-8eb92a014be020c99dad91ad2f7a8cbdcfa33d86.tar.gz cpython-8eb92a014be020c99dad91ad2f7a8cbdcfa33d86.tar.bz2 |
Patch #608999: Fix portability problems with MIPSPro 7.x
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r-- | Modules/socketmodule.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index a790900..bdeddea 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -155,6 +155,14 @@ shutdown(how) -- shut down traffic in one or both directions\n\ # include <os2.h> #endif +#if defined(__sgi)&&_COMPILER_VERSION>700 && !_SGIAPI +/* make sure that the reentrant (gethostbyaddr_r etc) + functions are declared correctly if compiling with + MIPSPro 7.x in ANSI C mode (default) */ +#define _SGIAPI 1 +#include "netdb.h" +#endif + /* Generic includes */ #include <sys/types.h> #include <signal.h> |