aboutsummaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorMartin Waitz <tali@admingilde.org>2007-02-17 10:13:10 +0100
committerJunio C Hamano <junkio@cox.net>2007-02-20 22:45:09 -0800
commitb97e911643341cb31e6b97029b9ffd96fc675b1d (patch)
tree815f32ee0928e19e061faf39b77bcab961b1444b /git-compat-util.h
parent34c6a82b8afca18eab28eeca659e29db0faabc62 (diff)
downloadgit-b97e911643341cb31e6b97029b9ffd96fc675b1d.tar.gz
git-b97e911643341cb31e6b97029b9ffd96fc675b1d.tar.xz
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 <tali@admingilde.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h2
1 files changed, 2 insertions, 0 deletions
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