diff Modules/socketmodule.c @ 4651:6effd10e7233 legacy-trunk

Added extern decl for gethostname() to keep gcc -Wall happy.
author Guido van Rossum <guido@python.org>
date Tue, 10 Dec 1996 15:17:08 +0000
parents d36250aefb82
children 2426a220664b
line wrap: on
line diff
--- a/Modules/socketmodule.c	Tue Dec 10 00:32:31 1996 +0000
+++ b/Modules/socketmodule.c	Tue Dec 10 15:17:08 1996 +0000
@@ -89,6 +89,10 @@
 #include <unistd.h>
 #endif
 
+#ifndef MS_WINDOWS
+extern int gethostname(); /* For Solaris, at least */
+#endif
+
 #include <sys/types.h>
 #include "mytime.h"