Use _POSIX_VERSION, not _POSIX_SOURCE.
[pspp] / lib / fileblocks.c
index 23dee981502164ad20befcefaa0dbed4927e0a7c..e85bf17bcaf9963348a9f6438c8a200682744ce8 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))