summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/xgethostname.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/xgethostname.c b/lib/xgethostname.c
index a78dda8b6..861c52f05 100644
--- a/lib/xgethostname.c
+++ b/lib/xgethostname.c
@@ -21,6 +21,7 @@
# include <config.h>
#endif
+#include <stdlib.h>
#include <sys/types.h>
#include <errno.h>