Patch for compilation on IRIX from rwgk on http://python.org/sf/728330

This commit is contained in:
Trent Mick 2004-09-13 17:48:41 +00:00
parent b6234a95c1
commit 8ea5bdf784
1 changed files with 10 additions and 0 deletions

View 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