mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-24 00:12:25 +00:00
open() flag O_DSYNC isn't on BSD, use O_SYNC
If the detected OS is FreeBSD, tell LMDB to compile with MDB_DSYNC=O_SYNC instead of the default O_DSYNC, as BSD does not implement this flag.
This commit is contained in:
parent
5de12913dc
commit
ea08c768e2
2 changed files with 8 additions and 0 deletions
4
external/db_drivers/liblmdb32/CMakeLists.txt
vendored
4
external/db_drivers/liblmdb32/CMakeLists.txt
vendored
|
@ -26,6 +26,10 @@
|
||||||
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
||||||
# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
if(FREEBSD)
|
||||||
|
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DMDB_DSYNC=O_SYNC")
|
||||||
|
endif()
|
||||||
|
|
||||||
set (lmdb_sources
|
set (lmdb_sources
|
||||||
mdb.c
|
mdb.c
|
||||||
midl.c)
|
midl.c)
|
||||||
|
|
4
external/db_drivers/liblmdb64/CMakeLists.txt
vendored
4
external/db_drivers/liblmdb64/CMakeLists.txt
vendored
|
@ -26,6 +26,10 @@
|
||||||
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
||||||
# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
if(FREEBSD)
|
||||||
|
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DMDB_DSYNC=O_SYNC")
|
||||||
|
endif()
|
||||||
|
|
||||||
set (lmdb_sources
|
set (lmdb_sources
|
||||||
mdb.c
|
mdb.c
|
||||||
midl.c)
|
midl.c)
|
||||||
|
|
Loading…
Reference in a new issue