From f955afce539ec1992334c95301753079ca101df2 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 11 Dec 2004 12:01:05 +0000 Subject: [PATCH] CONFIG_LFS has been removed, CONFIG_LARGE_DB got replaced by CONFIG_LARGE_FILES. --- lib/config.h | 6 +++++- lib/lfs.h | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/config.h b/lib/config.h index 8411bae7..c601cd28 100644 --- a/lib/config.h +++ b/lib/config.h @@ -34,6 +34,10 @@ typedef unsigned int sh_time_t; /* Timestamp */ #define NULL (void *)0 #endif -typedef s64 sh_off_t; /* FIXME */ +#ifdef CONFIG_LARGE_FILES /* File positions */ +typedef s64 sh_off_t; +#else +typedef s32 sh_off_t; +#endif #endif diff --git a/lib/lfs.h b/lib/lfs.h index 85990dae..501a5fc7 100644 --- a/lib/lfs.h +++ b/lib/lfs.h @@ -13,7 +13,7 @@ #include #include -#ifdef CONFIG_LFS +#ifdef CONFIG_LARGE_FILES #define sh_open open64 #define sh_seek lseek64 @@ -24,7 +24,7 @@ #define sh_pread pread64 #define sh_pwrite pwrite64 -#else /* !CONFIG_LFS */ +#else /* !CONFIG_LARGE_FILES */ #define sh_open open #define sh_seek(f,o,w) lseek(f,o,w) @@ -33,7 +33,7 @@ #define sh_pread pread #define sh_pwrite pwrite -#endif /* !CONFIG_LFS */ +#endif /* !CONFIG_LARGE_FILES */ #define SHERLOCK_HAVE_PREAD -- 2.39.2