Index: Modules/socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.271.6.2
diff -u -r1.271.6.2 socketmodule.c
--- Modules/socketmodule.c	7 Aug 2003 11:56:22 -0000	1.271.6.2
+++ Modules/socketmodule.c	2 Oct 2003 12:39:26 -0000
@@ -202,6 +202,12 @@
 #include <netdb.h>
 #endif
 
+/* GCC 3.2 on Irix 6.5 fails to define this variable at all. Based on 
+   the above code, I'd say that the SGI headers are just horked. */
+#if defined(__sgi) && !defined(INET_ADDRSTRLEN)
+#define INET_ADDRSTRLEN 16
+#endif
+
 /* Generic includes */
 #include <sys/types.h>
 #include <signal.h>
