]> granicus.if.org Git - python/commitdiff
Patch for compilation on IRIX from rwgk on http://python.org/sf/728330
authorTrent Mick <trentm@activestate.com>
Mon, 13 Sep 2004 17:48:41 +0000 (17:48 +0000)
committerTrent Mick <trentm@activestate.com>
Mon, 13 Sep 2004 17:48:41 +0000 (17:48 +0000)
Modules/socketmodule.c

index e6db05bf25d990b084db1760776dee91a1662536..6054c1855f77eb4fd6ba324f066fccd73485b899 100644 (file)
@@ -192,8 +192,18 @@ shutdown(how) -- shut down traffic in one or both directions\n\
 
 /* XXX Using _SGIAPI is the wrong thing, 
    but I don't know what the right thing is. */
+#undef _SGIAPI /* to avoid warning */
 #define _SGIAPI 1
 
+#undef _XOPEN_SOURCE
+#include <sys/socket.h>
+#include <sys/types.h>
+#include <netinet/in.h>
+#ifdef _SS_ALIGNSIZE
+#define HAVE_GETADDRINFO 1
+#define HAVE_GETNAMEINFO 1
+#endif
+
 #define HAVE_INET_PTON
 #include <netdb.h>
 #endif