From 5463b23591c45cc87ec70116bdccaea4fab400f6 Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Wed, 2 May 2018 09:59:33 -0500 Subject: [PATCH] Enable 64-bit file support on FreeBSD as well --- CMakeLists.txt | 4 ++-- winpr/CMakeLists.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b2947afce..c3c93d728 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -229,8 +229,8 @@ if(MSVC) endif() endif() -# Enable 64bit file support on linux. -if("${CMAKE_SYSTEM_NAME}" MATCHES "Linux") +# Enable 64bit file support on linux and FreeBSD. +if("${CMAKE_SYSTEM_NAME}" MATCHES "Linux" OR FREEBSD) add_definitions("-D_FILE_OFFSET_BITS=64") endif() diff --git a/winpr/CMakeLists.txt b/winpr/CMakeLists.txt index e56b3ad37..0cc7a6e48 100644 --- a/winpr/CMakeLists.txt +++ b/winpr/CMakeLists.txt @@ -160,8 +160,8 @@ endif() set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWINPR_EXPORTS") -# Enable 64bit file support on linux. -if("${CMAKE_SYSTEM_NAME}" MATCHES "Linux") +# Enable 64bit file support on linux and FreeBSD. +if("${CMAKE_SYSTEM_NAME}" MATCHES "Linux" OR FREEBSD) add_definitions("-D_FILE_OFFSET_BITS=64") endif()