summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/hostname.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/hostname.c b/src/hostname.c
index b325c2753..89cc568e8 100644
--- a/src/hostname.c
+++ b/src/hostname.c
@@ -32,15 +32,11 @@
#define AUTHORS proper_name ("Jim Meyering")
-#if HAVE_SETHOSTNAME && !defined sethostname
-int sethostname ();
-#endif
-
#if !defined HAVE_SETHOSTNAME && defined HAVE_SYSINFO && \
defined HAVE_SYS_SYSTEMINFO_H
# include <sys/systeminfo.h>
-int
+static int
sethostname (char *name, size_t namelen)
{
/* Using sysinfo() is the SVR4 mechanism to set a hostname. */