diff options
author | cen1 <klemenferjancic@hotmail.com> | 2016-07-10 13:09:00 +0200 |
---|---|---|
committer | cen1 <klemenferjancic@hotmail.com> | 2016-07-10 13:09:00 +0200 |
commit | e9c367a45756d2344285e6cdfb9215e7437491d5 (patch) | |
tree | e0f93644798427e5c107280343508648fba7d233 /CMakeLists.txt | |
parent | f2b60f7ff94038bb9217ed65beb6903f579b92aa (diff) |
Use regular filesystem calls instead of 64 bit versions on FreeBSD. Ideally FileStream.cpp should be modified to work everywhere but this is a quick and harmless solution for now.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a02f95f..9e8f566 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -276,6 +276,10 @@ if(APPLE) set(SRC_ADDITIONAL_FILES ${TOMCRYPT_FILES} ${TOMMATH_FILES}) endif() +if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DO_LARGEFILE -Dstat64=stat -Dlstat64=lstat -Dlseek64=lseek -Doff64_t=off_t -Dfstat64=fstat -Dftruncate64=ftruncate") +endif() + if (${CMAKE_SYSTEM_NAME} STREQUAL Linux) message(STATUS "Using Linux port") option(WITH_LIBTOMCRYPT "Use system LibTomCrypt library" OFF) |