# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1327911316 0 # Node ID 9a21fbd6ae504df513d248c472d3751c59f57245 # Parent 623a42cf06f43c843fea1d9bb2a32cf2935bd6a4 Don't rely on configure to add the 64bit file #defines on Unix and Mac. diff -r 623a42cf06f4 -r 9a21fbd6ae50 compat.h --- a/compat.h Sat Jan 28 23:19:56 2012 +0000 +++ b/compat.h Mon Jan 30 08:15:16 2012 +0000 @@ -7,6 +7,23 @@ #if defined(__UNIX__) || defined(__MAC__) #include "config.h" +/* Attempt to include 64 bit file functions on various unix flavors */ +#ifndef _FILE_OFFSET_BITS +#define _FILE_OFFSET_BITS 64 +#endif +#ifndef _LARGEFILE_SOURCE +#define _LARGEFILE_SOURCE 1 +#endif +#ifndef _LARGEFILE64_SOURCE +#define _LARGEFILE64_SOURCE 1 +#endif +#ifndef _LARGE_FILES +#define _LARGE_FILES 1 +#endif +#ifndef _DARWIN_USE_64_BIT_INODE +#define _DARWIN_USE_64_BIT_INODE 1 +#endif + #include #include void msleep(long period);