diff options
author | Guido van Rossum <guido@python.org> | 1996-12-10 15:17:08 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-12-10 15:17:08 (GMT) |
commit | fb4130d1f1aed9e0eabba30b1b672f583cef3a78 (patch) | |
tree | 63160c01b8f31fb8307653a487545ea251714580 | |
parent | 55db515a51468bb2f1ca2a61c9756dea88b79d58 (diff) | |
download | cpython-fb4130d1f1aed9e0eabba30b1b672f583cef3a78.zip cpython-fb4130d1f1aed9e0eabba30b1b672f583cef3a78.tar.gz cpython-fb4130d1f1aed9e0eabba30b1b672f583cef3a78.tar.bz2 |
Added extern decl for gethostname() to keep gcc -Wall happy.
-rw-r--r-- | Modules/socketmodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 3e510fe..6c72539 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -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" |