From cdfc8b0fd4b9a7be4d0bcf2b2342deb24fcb1eca Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 19 Aug 1994 17:01:45 +0000 Subject: [PATCH] . --- lib/ftruncate.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/ftruncate.c b/lib/ftruncate.c index 04156b76db..4f6aaa9934 100644 --- a/lib/ftruncate.c +++ b/lib/ftruncate.c @@ -15,11 +15,6 @@ #include #include -#include -#ifndef STDC_HEADERS -extern int errno; -#endif - #ifdef F_CHSIZE int @@ -36,10 +31,8 @@ ftruncate (fd, length) /* By William Kucharski . */ #include - -#ifdef HAVE_UNISTD_H +#include #include -#endif int ftruncate (fd, length) @@ -96,6 +89,11 @@ ftruncate (fd, length) #else /* not F_CHSIZE nor F_FREESP nor HAVE_CHSIZE */ +#include +#ifndef errno +extern int errno; +#endif + int ftruncate (fd, length) int fd; -- 2.30.2