]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added extern decl for gethostname() to keep gcc -Wall happy.
authorGuido van Rossum <guido@python.org>
Tue, 10 Dec 1996 15:17:08 +0000 (15:17 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 10 Dec 1996 15:17:08 +0000 (15:17 +0000)
Modules/socketmodule.c

index 3e510fe5659b35a9d390771709d0c63de86d896a..6c7253962011ff84d55bc450263b868636b9e937 100644 (file)
@@ -89,6 +89,10 @@ Socket methods:
 #include <unistd.h>
 #endif
 
+#ifndef MS_WINDOWS
+extern int gethostname(); /* For Solaris, at least */
+#endif
+
 #include <sys/types.h>
 #include "mytime.h"