Skip to content

Commit b97e911

Browse files
taliJunio C Hamano
authored andcommitted
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>
1 parent 34c6a82 commit b97e911

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git-compat-util.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef GIT_COMPAT_UTIL_H
22
#define GIT_COMPAT_UTIL_H
33

4+
#define _FILE_OFFSET_BITS 64
5+
46
#ifndef FLEX_ARRAY
57
#if defined(__GNUC__) && (__GNUC__ < 3)
68
#define FLEX_ARRAY 0

0 commit comments

Comments
 (0)