From c70c08f944b5339f99720b830bbd98d0817265dc Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 17 Oct 1993 22:31:39 +0000 Subject: [PATCH] [!NINDIR]: Define BSIZE only if it's not already defined. --- lib/fileblocks.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/fileblocks.c b/lib/fileblocks.c index 23dee98150..ee82f7596e 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)) -- 2.30.2