Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 36610:0671f3c462d5 legacy-trunk
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:33 +0000 |
| parents | c073dffbe70e |
| children | 4d988dda6478 |
line wrap: on
line diff
--- a/Modules/socketmodule.c Mon Feb 20 08:40:38 2006 +0000 +++ b/Modules/socketmodule.c Mon Feb 20 09:42:33 2006 +0000 @@ -215,8 +215,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
