fix undefined MDB_FDATASYNC on macos since ITS#9372. caused by 2nd elif not selected

lofire0_1_0
Niko 2 years ago
parent 0179cfab57
commit d5308c43c1
  1. 5
      libraries/liblmdb/mdb.c

@ -164,9 +164,10 @@ typedef SSIZE_T ssize_t;
#if defined(__FreeBSD__) && defined(__FreeBSD_version) && __FreeBSD_version >= 1100110 #if defined(__FreeBSD__) && defined(__FreeBSD_version) && __FreeBSD_version >= 1100110
# define MDB_USE_POSIX_MUTEX 1 # define MDB_USE_POSIX_MUTEX 1
# define MDB_USE_ROBUST 1 # define MDB_USE_ROBUST 1
#elif defined(__APPLE__) && !defined(MDB_USE_ROBUST)
# define MDB_USE_POSIX_SEM 1
#elif defined(__APPLE__) || defined (BSD) || defined(__FreeBSD_kernel__) #elif defined(__APPLE__) || defined (BSD) || defined(__FreeBSD_kernel__)
# if defined(__APPLE__) && !defined(MDB_USE_ROBUST)
# define MDB_USE_POSIX_SEM 1
# endif
# if !(defined(MDB_USE_POSIX_MUTEX) || defined(MDB_USE_POSIX_SEM)) # if !(defined(MDB_USE_POSIX_MUTEX) || defined(MDB_USE_POSIX_SEM))
# define MDB_USE_SYSV_SEM 1 # define MDB_USE_SYSV_SEM 1
# endif # endif

Loading…
Cancel
Save