https://bugs.openldap.org/show_bug.cgi?id=10007
--- Comment #3 from facboy@gmail.com --- Ok. I'm trying to build another application (knot-resolver) on MSYS, the original problem I ran into was that the knot-resolver uses `mdb_env_get_fd`, which returns a windows file handle from the WIN32-compiled LMDB. knot-resolver expects it to be a POSIX file handle, and it tries to fstat it, which blows up.