ITS#10419 LMDB: add support for NetBSD

This commit is contained in:
Ali Caglayan 2025-12-27 18:26:31 +00:00 committed by Howard Chu
parent f1620c3a1b
commit 4c84d3a312

View file

@ -137,6 +137,11 @@ typedef SSIZE_T ssize_t;
# define MDB_FDATASYNC fsync # define MDB_FDATASYNC fsync
#endif #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 #ifndef _WIN32
#include <pthread.h> #include <pthread.h>
#include <signal.h> #include <signal.h>