From 4525ec4a1355042ab3d9e4ef75bb7910bc84aac0 Mon Sep 17 00:00:00 2001 From: Radim Kolar <> Date: Sun, 14 Jun 2009 13:27:16 +0200 Subject: [PATCH] TWOGIGS and FOURGIGS moved to server_def.h, unbreaks compilation on systems without largefiles. --- ChangeLog | 1 + include/server_def.h | 3 +++ server/file.c | 3 --- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2d470da..4975de3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24,6 +24,7 @@ Version 2.8.1b25 - testing in progress same thing like ./configure do autogen.sh script fixed for FreeBSD builds. Execution order of gnu autotools was wrong and fallback to default autotools was wrong. + unbreak compilation on systems without large files Version 2.8.1b24 - 19 Feb 2005 use getopt from stdio.h instead of getopt.h in fspscan.c diff --git a/include/server_def.h b/include/server_def.h index f1cf1fd..c3ec64c 100644 --- a/include/server_def.h +++ b/include/server_def.h @@ -118,4 +118,7 @@ typedef struct { #define FSP_PASSWORD ".FSP_OK_PASSWORD" #define FSP_OWNERPASSWORD ".FSP_OWNER_PASSWORD" +#define FOURGIGS 0xffffffffUL +#define TWOGIGS 0x7fffffffUL + #endif /* _FSP_SERVER_DEF_H_ */ diff --git a/server/file.c b/server/file.c index c42759b..ed5cf7b 100644 --- a/server/file.c +++ b/server/file.c @@ -31,9 +31,6 @@ static struct FifoCache *dirstatcache; /* open file handles cache */ static struct FifoCache *fpcache; -#define FOURGIGS 0xffffffffUL -#define TWOGIGS 0x7fffffffUL - static FPCACHE *search_fpcache (unsigned long inet_num, unsigned short port_num, const char * fname)