aboutsummaryrefslogtreecommitdiff
path: root/gl/gethostname.c
diff options
context:
space:
mode:
Diffstat (limited to 'gl/gethostname.c')
-rw-r--r--gl/gethostname.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gl/gethostname.c b/gl/gethostname.c
index 169dd4ef..acff351d 100644
--- a/gl/gethostname.c
+++ b/gl/gethostname.c
@@ -19,6 +19,9 @@
#include <config.h>
+/* Specification. */
+#include <unistd.h>
+
#ifdef HAVE_UNAME
# include <sys/utsname.h>
#endif