From: Martin Waitz Date: Sat, 17 Feb 2007 09:13:10 +0000 (+0100) Subject: Support for large files on 32bit systems. X-Git-Tag: v1.5.1-rc1~267 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b97e911643341cb31e6b97029b9ffd96fc675b1d;p=git.git Support for large files on 32bit systems. Glibc uses the same size for int and off_t by default. In order to support large pack sizes (>2GB) we force Glibc to a 64bit off_t. Signed-off-by: Martin Waitz Signed-off-by: Junio C Hamano --- diff --git a/git-compat-util.h b/git-compat-util.h index d027c36b9..5d154faef 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -1,6 +1,8 @@ #ifndef GIT_COMPAT_UTIL_H #define GIT_COMPAT_UTIL_H +#define _FILE_OFFSET_BITS 64 + #ifndef FLEX_ARRAY #if defined(__GNUC__) && (__GNUC__ < 3) #define FLEX_ARRAY 0