X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffileblocks.c;h=ee82f7596eb332950cb4a39e292fe6542d67ab72;hb=e0be8461f5acc1b0b11684deb224a48e4bd96eb9;hp=23dee981502164ad20befcefaa0dbed4927e0a7c;hpb=d87c39464604e74f580c7fae835be31a4c125c36;p=gnulib.git diff --git a/lib/fileblocks.c b/lib/fileblocks.c index 23dee9815..ee82f7596 100644 --- a/lib/fileblocks.c +++ b/lib/fileblocks.c @@ -17,6 +17,17 @@ /* Written by Brian L. Matthews, blm@6sceng.UUCP. */ +#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 + #if !defined (HAVE_ST_BLOCKS) && !defined(_POSIX_SOURCE) #include #include @@ -24,7 +35,9 @@ #ifndef NINDIR /* Some SysV's, like Irix, seem to lack these. Hope they're correct. */ /* Size of a indirect block, in bytes. */ +#ifndef BSIZE #define BSIZE 1024 +#endif /* Number of inode pointers per indirect block. */ #define NINDIR (BSIZE/sizeof(daddr_t))