summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2004-08-25 06:24:58 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2004-08-25 06:24:58 (GMT)
commitb92b7ed9d64d8a57994052ccaf0f3c5526efe48c (patch)
treee23551184b499e6ed3cd1b68f09e4be1918717c8
parentef0a82b68290ddde9a2f5f88bbe02caa195158a5 (diff)
downloadcpython-b92b7ed9d64d8a57994052ccaf0f3c5526efe48c.zip
cpython-b92b7ed9d64d8a57994052ccaf0f3c5526efe48c.tar.gz
cpython-b92b7ed9d64d8a57994052ccaf0f3c5526efe48c.tar.bz2
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.
-rw-r--r--Modules/socketmodule.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 4249045..061d5c2 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -61,10 +61,6 @@ Local naming conventions:
*/
-#if defined(__sgi) && _COMPILER_VERSION>700 && !_SGIAPI
-#define _BSD_TYPES
-#endif
-
#include "Python.h"
#undef MAX
@@ -196,18 +192,8 @@ 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
@@ -271,24 +257,7 @@ int h_errno; /* not used */
# 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);