diff options
author | Jim Meyering <jim@meyering.net> | 1993-10-17 22:31:39 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1993-10-17 22:31:39 +0000 |
commit | 1958250cc66bf2ec89193bff8b27b73ce5765fc7 (patch) | |
tree | cabe5aea16adba61b8646a037cafa7e94f5f5247 /lib/fileblocks.c | |
parent | fa7a1e19e2b4fcec1f67ebd75f6f12ae65eef8c8 (diff) | |
download | coreutils-1958250cc66bf2ec89193bff8b27b73ce5765fc7.tar.xz |
[!NINDIR]: Define BSIZE only if it's not already defined.
Diffstat (limited to 'lib/fileblocks.c')
-rw-r--r-- | lib/fileblocks.c | 13 |
1 files changed, 13 insertions, 0 deletions
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 <config.h> 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 <config.h> +#else +#include "config.h" +#endif +#endif + #if !defined (HAVE_ST_BLOCKS) && !defined(_POSIX_SOURCE) #include <sys/types.h> #include <sys/param.h> @@ -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)) |