summaryrefslogtreecommitdiff
path: root/lib/ftruncate.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-08-19 17:05:18 +0000
committerJim Meyering <jim@meyering.net>1994-08-19 17:05:18 +0000
commit109d16cbce3fd91f479679bc77b91fb72f9c8ced (patch)
tree32d41a31c4f2158205301bd8d21843133ac7ebd8 /lib/ftruncate.c
parentcb6cf9485c35028131a6bb3ef450aa594f4be6ce (diff)
downloadcoreutils-109d16cbce3fd91f479679bc77b91fb72f9c8ced.tar.xz
.
Diffstat (limited to 'lib/ftruncate.c')
-rw-r--r--lib/ftruncate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ftruncate.c b/lib/ftruncate.c
index 4f6aaa993..58cd2bba9 100644
--- a/lib/ftruncate.c
+++ b/lib/ftruncate.c
@@ -32,7 +32,9 @@ ftruncate (fd, length)
#include <sys/stat.h>
#include <errno.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
int
ftruncate (fd, length)