Skip to content

Commit

Permalink
Support for large files on 32bit systems.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
tali authored and Junio C Hamano committed Feb 21, 2007
1 parent 34c6a82 commit b97e911
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions git-compat-util.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit b97e911

Please sign in to comment.