mdbx: avoid including sys/sem.h when MDBX_LOCKING != MDBX_LOCKING_SYSV.

Fixes https://github.com/erthink/libmdbx/issues/258.
This commit is contained in:
Leonid Yuriev 2022-01-05 15:24:29 +03:00
parent 024900ee9c
commit 066bb696e3

View File

@ -15,7 +15,10 @@
#if !(defined(_WIN32) || defined(_WIN64)) /* !Windows LCK-implementation */
#include "internals.h"
#if MDBX_LOCKING == MDBX_LOCKING_SYSV
#include <sys/sem.h>
#endif /* MDBX_LOCKING == MDBX_LOCKING_SYSV */
/*----------------------------------------------------------------------------*/
/* global constructor/destructor */