--- gop_fixup/sysdep.h Sun Feb 9 19:42:47 2003 +++ gop_fixup.new/sysdep.h Mon Apr 21 22:23:13 2003 @@ -1,6 +1,9 @@ #ifndef INCLUDED_SYSDEP_H #define INCLUDED_SYSDEP_H +#define MIN(a,b) ((a)<(b) ? (a) : (b)) +#define MAX(a,b) ((a) > (b) ? (a) : (b)) + #ifdef WIN32 /* This is only for opening readonly, but good 'nuff */ #define open_rw(path) open((path), (_O_RDWR | _O_BINARY)) @@ -14,6 +17,9 @@ #else #define _FILE_OFFSET_BITS 64 #define _LARGEFILE_SOURCE 1 +#define __USE_LARGEFILE64 1 +#define __USE_FILE_OFFSET64 1 +#define MMAP_WINDOW 10485760 #include #define open_rw(path) open((path), (O_RDWR)) // O_LARGEFILE #define open_wr_app(path) open((path), (O_WRONLY|O_APPEND)) // O_LARGEFILE