From: Jim Meyering Date: Sun, 17 Oct 1993 22:31:39 +0000 (+0000) Subject: [!NINDIR]: Define BSIZE only if it's not already defined. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c70c08f944b5339f99720b830bbd98d0817265dc;p=pspp [!NINDIR]: Define BSIZE only if it's not already defined. --- 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))