X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fftruncate.c;h=1272ee74f6dd928170e08261c96e17c70cfdc69c;hb=3b3231a029a148f719f3347a4ec9ab11f7625231;hp=04156b76db7232ed57c6ff05d017e53ed2894ff2;hpb=a12fdce01375ec565ba46583b25851bbeb3bc8bf;p=gnulib.git diff --git a/lib/ftruncate.c b/lib/ftruncate.c index 04156b76d..1272ee74f 100644 --- a/lib/ftruncate.c +++ b/lib/ftruncate.c @@ -2,24 +2,12 @@ This file is in the public domain. */ #ifdef HAVE_CONFIG_H -#if defined (CONFIG_BROKETS) -/* We use instead of "config.h" so that a compilation - using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h - (which it would do because it found this file in $srcdir). */ #include -#else -#include "config.h" -#endif #endif #include #include -#include -#ifndef STDC_HEADERS -extern int errno; -#endif - #ifdef F_CHSIZE int @@ -36,7 +24,7 @@ ftruncate (fd, length) /* By William Kucharski . */ #include - +#include #ifdef HAVE_UNISTD_H #include #endif @@ -96,6 +84,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;