summaryrefslogtreecommitdiff
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index a445581565..7368eb4ee7 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