diff Modules/socketmodule.c @ 25327:337fcc24985b legacy-trunk

Patch #608999: Fix portability problems with MIPSPro 7.x
author Martin v. Löwis <martin@v.loewis.de>
date Thu, 19 Sep 2002 08:03:21 +0000
parents 39e09f30f7ef
children bb813346b227
line wrap: on
line diff
--- a/Modules/socketmodule.c	Thu Sep 19 00:42:16 2002 +0000
+++ b/Modules/socketmodule.c	Thu Sep 19 08:03:21 2002 +0000
@@ -155,6 +155,14 @@
 # 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>