From: Florian Weimer Date: Thu, 05 Apr 2007 21:17:58 GMT Subject: Re: [PATCH] git-{repack,pack-objects} accept --{pack,blob}-limit to control pack size Message-ID: <87r6qy7c6x.fsf@mid.deneb.enyo.de> In-Reply-To: <20070405171432.GK5436@spearce.org> * Shawn O. Pearce: > So we'd probably have to do something like: > > #ifndef _LFS_LARGEFILE > #define open64 open > #define lseek64 lseek > #endif > > and then start using the open64/lseek64 variants instead. Or do > the reverse #define's. ;-) This is actually what "#define _FILE_OFFSET_BITS 64" does. It's usually not a bad idea per se, but you must not use off_t in library header files if you do this. lseek64 and friends are under -D_LARGEFILE64_SOURCE, it seems. Pitty we couldn't get rid of this mess when switching to libc6. 8-(