]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10420 LMDB: add support for Haiku mdb.master
authorAli Caglayan <alizter@gmail.com>
Sun, 28 Dec 2025 00:34:25 +0000 (00:34 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 13 Jan 2026 16:43:19 +0000 (16:43 +0000)
libraries/liblmdb/mdb.c

index 8c35be48a67ad11bac0fcd7375f253e819c7ee34..fffcdfad6a0767d57f97c1ea046f69cba4284edf 100644 (file)
@@ -174,6 +174,9 @@ typedef SSIZE_T     ssize_t;
 # endif
 #elif defined(__ANDROID__)
 # define MDB_FDATASYNC         fsync
+#elif defined(__HAIKU__)
+# define MDB_USE_POSIX_SEM     1
+# define MDB_FDATASYNC         fsync
 #endif
 
 /* NetBSD does not define union semun in sys/sem.h */