https://bugs.openldap.org/show_bug.cgi?id=10007
--- Comment #4 from Howard Chu hyc@openldap.org --- Sounds like you should file a bug with the knot-resolver maintainers. The LMDB docs clearly state:
/** An abstraction for a file handle. * On POSIX systems file handles are small integers. On Windows * they're opaque pointers. */ #ifdef _WIN32 typedef void *mdb_filehandle_t; #else typedef int mdb_filehandle_t; #endif
int mdb_env_get_fd(MDB_env *env, mdb_filehandle_t *fd);
Using a filehandle as a POSIX fd on Windows is obviously wrong.