Mercurial > hg > octave-kai > gnulib-hg
changeset 293:3f0bdbc1006f
.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Fri, 19 Aug 1994 17:01:45 +0000 |
parents | 5c85c33d8ffa |
children | 40404a165807 |
files | lib/ftruncate.c |
diffstat | 1 files changed, 6 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ /* 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 @@ #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;