Merge pull request #278 from qurious-pixel/patch-1

Merged. Thank you for the contribution.
This commit is contained in:
Ladislav Zezula
2022-12-22 14:19:49 +01:00
committed by GitHub

View File

@@ -322,8 +322,8 @@ else()
endif()
endif()
if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD)
message(STATUS "Using FreeBSD port")
if(${CMAKE_SYSTEM_NAME} MATCHES "(Free|Net|Open)BSD")
message(STATUS "Using BSD port")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DO_LARGEFILE=0 -Dstat64=stat -Dlstat64=lstat -Dlseek64=lseek -Doff64_t=off_t -Dfstat64=fstat -Dftruncate64=ftruncate")
endif()