summaryrefslogtreecommitdiff
path: root/lang/python27/patches/patch-Modules_socketmodule.c
blob: 880e975a340e5e1e482e85aaa1d2547019750e94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-Modules_socketmodule.c,v 1.5 2015/04/24 03:01:36 rodent Exp $

--- Modules/socketmodule.c.orig	2014-12-10 15:59:55.000000000 +0000
+++ Modules/socketmodule.c
@@ -248,7 +248,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