diff Modules/socketmodule.c @ 36611:4d7653e5cb3b 2.4

Bug #854823: socketmodule now builds on Sun platforms even when INET_ADDRSTRLEN is not defined.
author Georg Brandl <georg@python.org>
date Mon, 20 Feb 2006 09:42:37 +0000
parents 65ae730b6231
children 42312e5f11fd
line wrap: on
line diff
--- a/Modules/socketmodule.c	Sun Feb 19 13:22:58 2006 +0000
+++ b/Modules/socketmodule.c	Mon Feb 20 09:42:37 2006 +0000
@@ -210,8 +210,8 @@
 
 /* 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