summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-03-29 07:29:06 +0000
committerJim Meyering <jim@meyering.net>2004-03-29 07:29:06 +0000
commitedf60899e05b5c6f0bed0e3453641db797bf22fd (patch)
tree1fe5c696721374318534671cd636f9240bb376ec /lib
parent829a38c5d3aca3feeef4025200d4f4af0044b801 (diff)
downloadcoreutils-edf60899e05b5c6f0bed0e3453641db797bf22fd.tar.xz
[HAVE_UNISTD_H]: Include <unistd.h>, for resolvepath declaration.
Diffstat (limited to 'lib')
-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"