login
Header Space

 
 

[PATCH] Support for large files on 32bit systems.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Saturday, February 17, 2007 - 5:13 am

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>
---
 git-compat-util.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/git-compat-util.h b/git-compat-util.h
index bf3ceb8..38f9594 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -19,6 +19,11 @@
 #define _GNU_SOURCE 1
 #define _BSD_SOURCE 1
 
+/* support large files even on 32bit systems */
+#ifdef __GLIBC__
+#define _FILE_OFFSET_BITS=64
+#endif
+
 #include <unistd.h>
 #include <stdio.h>
 #include <sys/stat.h>
-- 
1.5.0.rc2.g08361-dirty

-- 
Martin Waitz
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Support for large files on 32bit systems., Martin Waitz, (Sat Feb 17, 5:13 am)
Re: [PATCH] Support for large files on 32bit systems., Martin Waitz, (Sat Feb 17, 5:39 am)
Re: [PATCH] Support for large files on 32bit systems., Shawn O. Pearce, (Sat Feb 17, 5:49 am)
Re: [PATCH] Support for large files on 32bit systems., Nicolas Pitre, (Sat Feb 17, 9:32 am)
Re: [PATCH] Support for large files on 32bit systems., Junio C Hamano, (Sun Feb 18, 10:44 pm)
Re: [PATCH] Support for large files on 32bit systems., Martin Waitz, (Sat Feb 17, 6:46 am)
speck-geostationary