mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 02:24:14 +08:00
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:
parent
024900ee9c
commit
066bb696e3
@ -15,7 +15,10 @@
|
|||||||
#if !(defined(_WIN32) || defined(_WIN64)) /* !Windows LCK-implementation */
|
#if !(defined(_WIN32) || defined(_WIN64)) /* !Windows LCK-implementation */
|
||||||
|
|
||||||
#include "internals.h"
|
#include "internals.h"
|
||||||
|
|
||||||
|
#if MDBX_LOCKING == MDBX_LOCKING_SYSV
|
||||||
#include <sys/sem.h>
|
#include <sys/sem.h>
|
||||||
|
#endif /* MDBX_LOCKING == MDBX_LOCKING_SYSV */
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------*/
|
/*----------------------------------------------------------------------------*/
|
||||||
/* global constructor/destructor */
|
/* global constructor/destructor */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user