summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/canonicalize.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/canonicalize.c b/lib/canonicalize.c
index 6e58b282d..643f75b14 100644
--- a/lib/canonicalize.c
+++ b/lib/canonicalize.c
@@ -38,6 +38,10 @@ void free ();
#include <sys/stat.h>
+#if HAVE_UNISTD_H
+# include <unistd.h>
+#endif
+
#include <errno.h>
#include "path-concat.h"