From: Martin Mares Date: Sat, 11 Dec 2004 12:01:05 +0000 (+0000) Subject: CONFIG_LFS has been removed, CONFIG_LARGE_DB got replaced by CONFIG_LARGE_FILES. X-Git-Tag: holmes-import~851 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=f955afce539ec1992334c95301753079ca101df2;p=libucw.git CONFIG_LFS has been removed, CONFIG_LARGE_DB got replaced by CONFIG_LARGE_FILES. --- 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