]> 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:50:17 +0000 (16:50 +0000)
libraries/liblmdb/mdb.c

index a6b5375c0003e54c64d5d1a127d3785f6d787d47..9c1dd91183ca90d509ed73fa428765adbea0ef41 100644 (file)
@@ -137,6 +137,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>