summaryrefslogtreecommitdiff
path: root/src/hostname.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hostname.c')
-rw-r--r--src/hostname.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hostname.c b/src/hostname.c
index 9fcb897c7..c9b62e446 100644
--- a/src/hostname.c
+++ b/src/hostname.c
@@ -30,6 +30,10 @@
#define AUTHORS "Jim Meyering"
+#if HAVE_SETHOSTNAME && !defined sethostname
+int sethostname ();
+#endif
+
#if !defined(HAVE_SETHOSTNAME) && defined(HAVE_SYSINFO) && \
defined (HAVE_SYS_SYSTEMINFO_H) && defined(HAVE_LIMITS_H)
# include <sys/systeminfo.h>