diff options
| author | Guido van Rossum <guido@python.org> | 1996-12-10 15:17:08 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 1996-12-10 15:17:08 +0000 |
| commit | fb4130d1f1aed9e0eabba30b1b672f583cef3a78 (patch) | |
| tree | 63160c01b8f31fb8307653a487545ea251714580 /Modules | |
| parent | 55db515a51468bb2f1ca2a61c9756dea88b79d58 (diff) | |
| download | cpython-git-fb4130d1f1aed9e0eabba30b1b672f583cef3a78.tar.gz | |
Added extern decl for gethostname() to keep gcc -Wall happy.
Diffstat (limited to 'Modules')
| -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 3e510fe565..6c72539620 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" |
