From: Guido van Rossum Date: Tue, 10 Dec 1996 15:17:08 +0000 (+0000) Subject: Added extern decl for gethostname() to keep gcc -Wall happy. X-Git-Tag: v1.5a1~825 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fb4130d1f1aed9e0eabba30b1b672f583cef3a78;p=thirdparty%2FPython%2Fcpython.git Added extern decl for gethostname() to keep gcc -Wall happy. --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 3e510fe5659b..6c7253962011 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -89,6 +89,10 @@ Socket methods: #include #endif +#ifndef MS_WINDOWS +extern int gethostname(); /* For Solaris, at least */ +#endif + #include #include "mytime.h"