summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 34c6a82)
raw | patch | inline | side by side (parent: 34c6a82)
author | Martin Waitz <tali@admingilde.org> | |
Sat, 17 Feb 2007 09:13:10 +0000 (10:13 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 21 Feb 2007 06:45:09 +0000 (22:45 -0800) |
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>
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>
git-compat-util.h | patch | blob | history |
diff --git a/git-compat-util.h b/git-compat-util.h
index d027c36b97510eec59be9299bb306e87469ae6ab..5d154faef6bcdbef7ae8ad91b92b08be326af1e1 100644 (file)
--- a/git-compat-util.h
+++ b/git-compat-util.h
#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