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
| Linus Torvalds | Re: O_DIRECT question |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Dave Airlie | Re: [2.6.25-rc6] possible regression: X server dying |
| Florian Schmidt | blacklist kernel boot option |
git: | |
| Petr Baudis | repo.or.cz wishes? |
| Jon Smirl | ! [rejected] master -> master (non-fast forward) |
| Matthieu Moy | [BUG] git-svn dcommit fails (connection closed unexpectedly) |
| Jakub Narebski | Git User's Survey 2007 partial summary |
| Ondřej Surý | openbgp not exporing ipv6 to routing tables |
| Nick Guenther | Re: Real men don't attack straw men |
| Christophe Rioux | OpenBSD as host for VMWare Server |
| Bambero | two wan interfaces |
| Warner Losh | Re: SMP re-eetrancy in "bottom half" drivers |
| Martin Husemann | Re: Prototype kernel continuation-passing for NetBSD |
| Martin Husemann | Dynamic registry of ehternet frame types |
| der Mouse | Re: file id alignment |
