summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-02-20 09:42:37 +0000
committerGeorg Brandl <georg@python.org>2006-02-20 09:42:37 +0000
commit2fc63f7ba62eeae00347739cd0e09350ab8f697a (patch)
tree60e962d069f346d421493d0755b5b74be4f37253 /Modules
parentfc1022858c34e6ca8b61976d0f13ce0f5b0f1218 (diff)
downloadcpython-git-2fc63f7ba62eeae00347739cd0e09350ab8f697a.tar.gz
Bug #854823: socketmodule now builds on Sun platforms even when
INET_ADDRSTRLEN is not defined.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 0efa947940..a5d2bf3c43 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -210,8 +210,8 @@ shutdown(how) -- shut down traffic in one or both directions\n\
/* 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. */
-#if defined(__sgi) && !defined(INET_ADDRSTRLEN)
+ are just busted. Same thing for Solaris. */
+#if (defined(__sgi) || defined(sun)) && !defined(INET_ADDRSTRLEN)
#define INET_ADDRSTRLEN 16
#endif