diff options
author | Jim Meyering <jim@meyering.net> | 1994-08-19 17:01:45 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1994-08-19 17:01:45 +0000 |
commit | cb6cf9485c35028131a6bb3ef450aa594f4be6ce (patch) | |
tree | 797bc2cce96e49f79669bc33162b9b3a227ce7f3 | |
parent | 257b028a06490f8769aeda4a5d1169f2442fb18a (diff) | |
download | coreutils-cb6cf9485c35028131a6bb3ef450aa594f4be6ce.tar.xz |
.
-rw-r--r-- | lib/ftruncate.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/ftruncate.c b/lib/ftruncate.c index 04156b76d..4f6aaa993 100644 --- a/lib/ftruncate.c +++ b/lib/ftruncate.c @@ -15,11 +15,6 @@ #include <sys/types.h> #include <fcntl.h> -#include <errno.h> -#ifndef STDC_HEADERS -extern int errno; -#endif - #ifdef F_CHSIZE int @@ -36,10 +31,8 @@ ftruncate (fd, length) /* By William Kucharski <kucharsk@netcom.com>. */ #include <sys/stat.h> - -#ifdef HAVE_UNISTD_H +#include <errno.h> #include <unistd.h> -#endif int ftruncate (fd, length) @@ -96,6 +89,11 @@ ftruncate (fd, length) #else /* not F_CHSIZE nor F_FREESP nor HAVE_CHSIZE */ +#include <errno.h> +#ifndef errno +extern int errno; +#endif + int ftruncate (fd, length) int fd; |