https://bugs.openldap.org/show_bug.cgi?id=9017
--- Comment #20 from kriszyp@gmail.com kriszyp@gmail.com ---
You ought to be able to use int64_t instead, or any other explicitly 64-bit signed integer type.
Yes, that (#define MDB_OFF_T int64_t) compiles and works fine in all my tests (including with >2GB dbs). I assume you can commit/fix this (or do we want me to make a patch)? Thanks, Kris