[Python-checkins] python/dist/src/Modules socketmodule.c, 1.302, 1.303

loewis at users.sourceforge.net loewis at users.sourceforge.net
Wed Aug 25 08:25:00 CEST 2004


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30627

Modified Files:
	socketmodule.c 
Log Message:
Back out 1.289, which breaks platforms needing addrinfo.h, and
1.293, 1.298, and 1.300, which have tried to fix this for specific
platforms.


Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.302
retrieving revision 1.303
diff -u -d -r1.302 -r1.303
--- socketmodule.c	23 Aug 2004 05:16:23 -0000	1.302
+++ socketmodule.c	25 Aug 2004 06:24:58 -0000	1.303
@@ -61,10 +61,6 @@
 
 */
 
-#if defined(__sgi) && _COMPILER_VERSION>700 && !_SGIAPI
-#define _BSD_TYPES
-#endif
-
 #include "Python.h"
 
 #undef MAX
@@ -196,18 +192,8 @@
 
 /* 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
@@ -271,24 +257,7 @@
 # define O_NONBLOCK O_NDELAY
 #endif
 
-#if defined(__sgi) && _COMPILER_VERSION>700 \
- && !defined(_SS_ALIGNSIZE) /* defined in sys/socket.h            */
-                            /* by some newer versions of IRIX     */
-                            /* (e.g. not by 6.5.10 but by 6.5.21) */
-#include "addrinfo.h"
-#endif
-
-#if defined(PYOS_OS2) && defined(PYCC_GCC)
 #include "addrinfo.h"
-#endif
-
-#if defined(_MSC_VER) && _MSC_VER == 1200
-#include "addrinfo.h"
-#endif
-
-#if defined(__CYGWIN__)
-#include "addrinfo.h"
-#endif
 
 #ifndef HAVE_INET_PTON
 int inet_pton(int af, const char *src, void *dst);



More information about the Python-checkins mailing list