mdbx: portability - define MDBX_ENODATA=-1 if ENODATA not available.

Change-Id: I75a072975e3cf07d801ae3782430c0033c271947
This commit is contained in:
Leonid Yuriev 2019-07-13 20:20:43 +03:00
parent cf7160bda2
commit f2c3fcb6a4

4
mdbx.h
View File

@ -112,7 +112,11 @@ typedef DWORD mdbx_tid_t;
typedef int mdbx_filehandle_t;
typedef pid_t mdbx_pid_t;
typedef pthread_t mdbx_tid_t;
#ifdef ENODATA
#define MDBX_ENODATA ENODATA
#else
#define MDBX_ENODATA -1
#endif
#define MDBX_EINVAL EINVAL
#define MDBX_EACCESS EACCES
#define MDBX_ENOMEM ENOMEM