summaryrefslogtreecommitdiff
path: root/lang/python23/patches/patch-cc
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python23/patches/patch-cc')
-rw-r--r--lang/python23/patches/patch-cc44
1 files changed, 0 insertions, 44 deletions
diff --git a/lang/python23/patches/patch-cc b/lang/python23/patches/patch-cc
deleted file mode 100644
index 96cb43e489c..00000000000
--- a/lang/python23/patches/patch-cc
+++ /dev/null
@@ -1,44 +0,0 @@
-$NetBSD: patch-cc,v 1.1 2004/11/24 20:45:10 jschauma Exp $
-
---- Modules/socketmodule.c.orig Mon Nov 22 22:59:27 2004
-+++ Modules/socketmodule.c Mon Nov 22 23:06:49 2004
-@@ -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
-@@ -259,7 +269,19 @@
- # define O_NONBLOCK O_NDELAY
- #endif
-
--#include "addrinfo.h"
-+/* include Python's addrinfo.h unless it causes trouble */
-+#if defined(__sgi) && _COMPILER_VERSION>700 && defined(_SS_ALIGNSIZE)
-+/* Do not include addinfo.h on some newer IRIX versions.
-+* _SS_ALIGNSIZE is defined in sys/socket.h by 6.5.21,
-+* for example, but not by 6.5.10.
-+*/
-+#elif defined(_MSC_VER) && _MSC_VER>1200
-+/* Do not include addrinfo.h for MSVC7 or greater. 'addrinfo' and
-+* EAI_* constants are defined in (the already included) ws2tcpip.h.
-+*/
-+#else
-+# include "addrinfo.h"
-+#endif
-
- #ifndef HAVE_INET_PTON
- int inet_pton(int af, const char *src, void *dst);