mdbx: использование при наличии EREMOTEIO вместо ENOTBLK в качестве MDBX_EREMOTE.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2025-01-13 20:43:02 +03:00
parent 950db52fe8
commit e4054b56c3

5
mdbx.h
View File

@ -1999,7 +1999,12 @@ typedef enum MDBX_error {
MDBX_EPERM = EPERM,
MDBX_EINTR = EINTR,
MDBX_ENOFILE = ENOENT,
#if defined(EREMOTEIO) || defined(DOXYGEN)
/** Cannot use the database on a network file system or when exporting it via NFS. */
MDBX_EREMOTE = EREMOTEIO,
#else
MDBX_EREMOTE = ENOTBLK,
#endif /* EREMOTEIO */
MDBX_EDEADLK = EDEADLK
#endif /* !Windows */
} MDBX_error_t;