mdbx: define MDBX_ENODATA == 9919 on systems without ENODATA.

As workaround for incompatibility C and C++ code using LLVM's C++ libraries/headers on on systems without native `ENODATA`.
This commit is contained in:
Leonid Yuriev 2021-11-22 16:05:31 +03:00
parent a2141ceaac
commit 085a97f835

2
mdbx.h
View File

@ -1737,7 +1737,7 @@ enum MDBX_error_t {
#ifdef ENODATA
MDBX_ENODATA = ENODATA,
#else
MDBX_ENODATA = -1,
MDBX_ENODATA = 9919 /* for compatibility with LLVM's C++ libraries/headers */,
#endif /* ENODATA */
MDBX_EINVAL = EINVAL,
MDBX_EACCESS = EACCES,