summaryrefslogtreecommitdiff
path: root/lang/python27/patches/patch-Modules_socketmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python27/patches/patch-Modules_socketmodule.c')
-rw-r--r--lang/python27/patches/patch-Modules_socketmodule.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/python27/patches/patch-Modules_socketmodule.c b/lang/python27/patches/patch-Modules_socketmodule.c
new file mode 100644
index 00000000000..d6a0bbfe1a8
--- /dev/null
+++ b/lang/python27/patches/patch-Modules_socketmodule.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-Modules_socketmodule.c,v 1.4 2014/07/17 15:26:49 ryoon Exp $
+
+--- Modules/socketmodule.c.orig 2014-06-30 02:05:43.000000000 +0000
++++ Modules/socketmodule.c
+@@ -244,7 +244,7 @@ shutdown(how) -- shut down traffic in on
+ /* Irix 6.5 fails to define this variable at all. This is needed
+ for both GCC and SGI's compiler. I'd say that the SGI headers
+ are just busted. Same thing for Solaris. */
+-#if (defined(__sgi) || defined(sun)) && !defined(INET_ADDRSTRLEN)
++#if (defined(__sgi) || defined(sun) || defined(_SCO_DS)) && !defined(INET_ADDRSTRLEN)
+ #define INET_ADDRSTRLEN 16
+ #endif
+