diff --git a/gl/gethostname.c b/gl/gethostname.c
index 169dd4ef3b0e00afbd2536f05736552c5ca8ea67..acff351d8717f4e0f59bdd41f1bab217e237832e 100644 (file)
--- a/gl/gethostname.c
+++ b/gl/gethostname.c
#include <config.h>
+/* Specification. */
+#include <unistd.h>
+
#ifdef HAVE_UNAME
# include <sys/utsname.h>
#endif