summaryrefslogtreecommitdiff
path: root/lang/python27/patches/patch-Modules_getaddrinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python27/patches/patch-Modules_getaddrinfo.c')
-rw-r--r--lang/python27/patches/patch-Modules_getaddrinfo.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/lang/python27/patches/patch-Modules_getaddrinfo.c b/lang/python27/patches/patch-Modules_getaddrinfo.c
new file mode 100644
index 00000000000..0b0b14aeadb
--- /dev/null
+++ b/lang/python27/patches/patch-Modules_getaddrinfo.c
@@ -0,0 +1,20 @@
+$NetBSD: patch-Modules_getaddrinfo.c,v 1.1 2014/07/17 15:26:49 ryoon Exp $
+
+--- Modules/getaddrinfo.c.orig 2014-06-30 02:05:43.000000000 +0000
++++ Modules/getaddrinfo.c
+@@ -66,6 +66,15 @@
+ #define YES 1
+ #define NO 0
+
++/* SCO OpenServer 5.0.7/3.2's sys/reg.h defines ERR. */
++#if defined(ERR)
++#undef ERR
++#endif
++
++# if defined(_SCO_DS)
++typedef int socklen_t;
++#endif
++
+ #ifdef FAITH
+ static int translate = NO;
+ static struct in6_addr faith_prefix = IN6ADDR_GAI_ANY_INIT;