diff options
author | Georg Brandl <georg@python.org> | 2006-02-20 09:42:33 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-02-20 09:42:33 (GMT) |
commit | dbd8339a010cae023d800bdb5e6b03cb9d08229f (patch) | |
tree | f3e8f05e1723fc955d8ed05ec7817615c6137248 /Modules | |
parent | 8f7c54eaa5e363ef02e99518253b3cb17f6602e6 (diff) | |
download | cpython-dbd8339a010cae023d800bdb5e6b03cb9d08229f.zip cpython-dbd8339a010cae023d800bdb5e6b03cb9d08229f.tar.gz cpython-dbd8339a010cae023d800bdb5e6b03cb9d08229f.tar.bz2 |
Bug #854823: socketmodule now builds on Sun platforms even when
INET_ADDRSTRLEN is not defined.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/socketmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index a445581..7368eb4 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -215,8 +215,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 |