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 7b136c42f1
commit 22206c0f5f

View file

@ -179,6 +179,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>