From 3cb35a31b04fb8e5cbfda3affcaa87dfee620355 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 19 Feb 2009 20:32:47 +0100 Subject: [PATCH] MinGW: use off64_t and lseek64() On Windows, off_t is restricted to 32-bit, even if it is perfectly capable of using 64-bit offsets; Force the use of 64-bit offsets by overriding the declarations of off_t and lseek() with their 64-bit counterparts. Signed-off-by: Johannes Schindelin --- compat/mingw.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compat/mingw.h b/compat/mingw.h index 8898006278..bfdfdb4940 100644 --- a/compat/mingw.h +++ b/compat/mingw.h @@ -117,6 +117,9 @@ static inline int waitpid(pid_t pid, int *status, unsigned options) return -1; } +#define off_t off64_t +#define lseek lseek64 + /* * implementations of missing functions */