Skip to content

Commit

Permalink
Merge pull request ladislav-zezula#87 from heckendorfc/freebsd-open
Browse files Browse the repository at this point in the history
Define O_LARGEFILE as 0 on FreeBSD.
  • Loading branch information
ladislav-zezula authored Sep 8, 2016
2 parents 497a882 + 10f2349 commit e472823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD)
message(STATUS "Using FreeBSD port")
set(LINK_LIBS z bz2)
set(SRC_ADDITIONAL_FILES ${TOMCRYPT_FILES} ${TOMMATH_FILES})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DO_LARGEFILE -Dstat64=stat -Dlstat64=lstat -Dlseek64=lseek -Doff64_t=off_t -Dfstat64=fstat -Dftruncate64=ftruncate")
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()

if (${CMAKE_SYSTEM_NAME} STREQUAL Linux)
Expand Down

0 comments on commit e472823

Please sign in to comment.