From 369b99a46099fdca33ba86b530c1bed2ed098f92 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 20 Jan 2016 01:30:57 +0000 Subject: [PATCH] WIN64 needs off_t redefined too --- libraries/liblmdb/mdb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 1edc282b81..73c80da13c 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -35,6 +35,9 @@ #ifndef _GNU_SOURCE #define _GNU_SOURCE 1 #endif +#if defined(__WIN64__) +#define _FILE_OFFSET_BITS 64 +#endif #ifdef _WIN32 #include #include -- 2.39.5