[Python-checkins] python/dist/src/Modules socketmodule.c, 1.305,
1.306
tmick at users.sourceforge.net
tmick at users.sourceforge.net
Mon Sep 13 19:48:44 CEST 2004
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10282
Modified Files:
socketmodule.c
Log Message:
Patch for compilation on IRIX from rwgk on http://python.org/sf/728330
Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.305
retrieving revision 1.306
diff -u -d -r1.305 -r1.306
--- socketmodule.c 7 Sep 2004 17:48:26 -0000 1.305
+++ socketmodule.c 13 Sep 2004 17:48:41 -0000 1.306
@@ -192,8 +192,18 @@
/* 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
More information about the Python-checkins
mailing list