Large database format and LFS really should be different switches --
small DB combined with LFS gives a 4GB limit, small with no LFS gives
2GB limit.
CONFIG_LFS is now always on (it's supported by all current Linux libc's
and the performance penalty for using 64-bit sh_off_t is negligible),
CONFIG_LARGE_DB is controlled by config.mk.
#define NULL (void *)0
#endif
-#ifdef CONFIG_LARGE_FILES /* File positions */
+#ifdef CONFIG_LFS /* File positions */
typedef s64 sh_off_t;
#else
typedef s32 sh_off_t;
#include <fcntl.h>
#include <unistd.h>
-#ifdef CONFIG_LARGE_FILES
+#ifdef CONFIG_LFS
#define sh_open open64
#define sh_seek lseek64
#define sh_pread pread64
#define sh_pwrite pwrite64
-#else /* !CONFIG_LARGE_FILES */
+#else /* !CONFIG_LFS */
#define sh_open open
#define sh_seek(f,o,w) lseek(f,o,w)
#define sh_pread pread
#define sh_pwrite pwrite
-#endif /* !CONFIG_LARGE_FILES */
+#endif /* !CONFIG_LFS */
#define HAVE_PREAD