From f2c3fcb6a4ebd36aac0a1d1be7919916b87567b5 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Sat, 13 Jul 2019 20:20:43 +0300 Subject: [PATCH] mdbx: portability - define MDBX_ENODATA=-1 if ENODATA not available. Change-Id: I75a072975e3cf07d801ae3782430c0033c271947 --- mdbx.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mdbx.h b/mdbx.h index a0854d7d..2bb690a0 100644 --- a/mdbx.h +++ b/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