From: Jim Meyering Date: Fri, 19 Aug 1994 17:01:45 +0000 (+0000) Subject: . X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdfc8b0fd4b9a7be4d0bcf2b2342deb24fcb1eca;p=pspp . --- 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;