summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorTrent Mick <trentm@activestate.com>2004-09-13 17:48:41 (GMT)
committerTrent Mick <trentm@activestate.com>2004-09-13 17:48:41 (GMT)
commit8ea5bdf7849ca9249396d034a76c99b2f7f51b0a (patch)
tree208ee7a16e37aa8d57def1e8e920a51c59898b20 /Modules/socketmodule.c
parentb6234a95c1b8c56563025883aac92b683e8a99bf (diff)
downloadcpython-8ea5bdf7849ca9249396d034a76c99b2f7f51b0a.zip
cpython-8ea5bdf7849ca9249396d034a76c99b2f7f51b0a.tar.gz
cpython-8ea5bdf7849ca9249396d034a76c99b2f7f51b0a.tar.bz2
Patch for compilation on IRIX from rwgk on http://python.org/sf/728330
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index e6db05b..6054c18 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 <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