]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10419 LMDB: add support for NetBSD
authorAli Caglayan <alizter@gmail.com>
Sat, 27 Dec 2025 18:26:31 +0000 (18:26 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 13 Jan 2026 16:39:46 +0000 (16:39 +0000)
libraries/liblmdb/mdb.c

index 90282cfc4f6d86324b68c7ff1cc4f60b9a38414f..8c35be48a67ad11bac0fcd7375f253e819c7ee34 100644 (file)
@@ -176,6 +176,11 @@ typedef SSIZE_T    ssize_t;
 # define MDB_FDATASYNC         fsync
 #endif
 
+/* NetBSD does not define union semun in sys/sem.h */
+#if defined(__NetBSD__) && !defined(_SEM_SEMUN_UNDEFINED)
+# define _SEM_SEMUN_UNDEFINED  1
+#endif
+
 #ifndef _WIN32
 #include <pthread.h>
 #include <signal.h>