From: Trent Mick Date: Mon, 13 Sep 2004 17:48:41 +0000 (+0000) Subject: Patch for compilation on IRIX from rwgk on http://python.org/sf/728330 X-Git-Tag: v2.4b1~274 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ea5bdf7849ca9249396d034a76c99b2f7f51b0a;p=python Patch for compilation on IRIX from rwgk on http://python.org/sf/728330 --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index e6db05bf25..6054c1855f 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -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 +#include +#include +#ifdef _SS_ALIGNSIZE +#define HAVE_GETADDRINFO 1 +#define HAVE_GETNAMEINFO 1 +#endif + #define HAVE_INET_PTON #include #endif