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>
Martin Waitz committed
Feb 17, 2007 at 10:13 UTC
b97e911643341cb31e6b97029b9ffd96fc675b1d
1 file changed
+2
git-compat-util.h
+2
@@ -1,6 +1,8 @@
1
#ifndef GIT_COMPAT_UTIL_H
2
#define GIT_COMPAT_UTIL_H
3
4
+#define _FILE_OFFSET_BITS 64
5
+
6
#ifndef FLEX_ARRAY
7
#if defined(__GNUC__) && (__GNUC__ < 3)
8
#define FLEX_ARRAY 0