.
[gnulib.git] / lib / fileblocks.c
index 23dee98..e85bf17 100644 (file)
 
 /* Written by Brian L. Matthews, blm@6sceng.UUCP. */
 \f
-#if !defined (HAVE_ST_BLOCKS) && !defined(_POSIX_SOURCE)
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#if !defined (HAVE_ST_BLOCKS) && !defined(_POSIX_VERSION)
 #include <sys/types.h>
 #include <sys/param.h>
 
 #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))