mirror of
https://github.com/isar/libmdbx.git
synced 2024-10-29 23:19:20 +08:00
mdbx: portability - define MDBX_ENODATA=-1 if ENODATA not available.
Change-Id: I75a072975e3cf07d801ae3782430c0033c271947
This commit is contained in:
parent
cf7160bda2
commit
f2c3fcb6a4
4
mdbx.h
4
mdbx.h
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user