mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Bug #854823: socketmodule now builds on Sun platforms even when
INET_ADDRSTRLEN is not defined.
This commit is contained in:
parent
8f7c54eaa5
commit
dbd8339a01
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue