Haiku build fix.

related to ringbuffer, matching cmake settings to disable mlock for this platform.
Haiku does not support tls model as well.
This commit is contained in:
David Carlier
2020-10-02 09:36:22 +00:00
committed by Johannes Lorenz
parent 109a7c4735
commit 4efe0c842e
2 changed files with 3 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ FILE(WRITE ${CMAKE_BINARY_DIR}/src/ringbuffer_export.h
# Enable MLOCK support for ringbuffer if available
INCLUDE(CheckIncludeFiles)
CHECK_INCLUDE_FILES(sys/mman.h HAVE_SYS_MMAN)
IF(HAVE_SYS_MMAN)
IF(HAVE_SYS_MMAN AND NOT CMAKE_SYSTEM_NAME MATCHES "Haiku")
SET(USE_MLOCK ON)
ELSE()
SET(USE_MLOCK OFF)