Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions StormLib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,6 @@ else()
endif()
endif()

if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD)
message(STATUS "Using FreeBSD 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()

add_library(${LIBRARY_NAME} ${LIB_TYPE} ${SRC_FILES} ${SRC_ADDITIONAL_FILES} ${STORM_DEF_FILES})

target_link_libraries(${LIBRARY_NAME} ${LINK_LIBS})
Expand Down
4 changes: 2 additions & 2 deletions StormLib/src/StormPort.h
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,8 @@

#endif // !STORMLIB_WINDOWS

// 64-bit calls are supplied by "normal" calls on Mac
#if defined(STORMLIB_MAC)
// 64-bit calls are supplied by "normal" calls on *BSD and derivatives
#if defined(STORMLIB_MAC) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
#define stat64 stat
#define fstat64 fstat
#define lseek64 lseek
Expand Down