diff --git a/CMakeLists.txt b/CMakeLists.txt index a0f7132..b3c37b4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,7 +30,7 @@ list(APPEND CORE_EXTRA src/win32_largefilewrapper.c include/win32_largefilewrapp src/athena/FileWriterWin32.cpp src/athena/FileReaderWin32.cpp) else() list(APPEND CORE_EXTRA src/athena/FileWriter.cpp src/athena/FileReader.cpp) -if(APPLE OR GEKKO) +if(APPLE OR GEKKO OR ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") list(APPEND CORE_EXTRA src/osx_largefilewrapper.c include/osx_largefilewrapper.h) if(GEKKO) list(APPEND CORE_EXTRA src/gekko_support.c include/gekko_support.h) diff --git a/include/osx_largefilewrapper.h b/include/osx_largefilewrapper.h index b188255..939829e 100644 --- a/include/osx_largefilewrapper.h +++ b/include/osx_largefilewrapper.h @@ -1,7 +1,7 @@ #ifndef OSX_LARGEFILEWRAPPER_H #define OSX_LARGEFILEWRAPPER_H -#if defined(__APPLE__) || defined(GEKKO) +#if defined(__APPLE__) || defined(GEKKO) || defined(__FreeBSD__) #include #ifdef __cplusplus extern "C" { diff --git a/src/athena/FileReader.cpp b/src/athena/FileReader.cpp index 9aeefed..c167a72 100644 --- a/src/athena/FileReader.cpp +++ b/src/athena/FileReader.cpp @@ -1,6 +1,6 @@ #include "athena/FileReader.hpp" -#if __APPLE__ +#if __APPLE__ || __FreeBSD__ #include "osx_largefilewrapper.h" #elif GEKKO #include "gekko_support.h" diff --git a/src/athena/FileWriter.cpp b/src/athena/FileWriter.cpp index 77215c9..2c0407f 100644 --- a/src/athena/FileWriter.cpp +++ b/src/athena/FileWriter.cpp @@ -1,6 +1,6 @@ #include "athena/FileWriter.hpp" -#if __APPLE__ +#if __APPLE__ || __FreeBSD__ #include "osx_largefilewrapper.h" #elif GEKKO #include "gekko_support.h" diff --git a/src/osx_largefilewrapper.c b/src/osx_largefilewrapper.c index 5049bf0..21e8e1d 100644 --- a/src/osx_largefilewrapper.c +++ b/src/osx_largefilewrapper.c @@ -1,4 +1,4 @@ -#if defined(__APPLE__) || defined(GEKKO) +#if defined(__APPLE__) || defined(GEKKO) || defined(__FreeBSD__) #include "osx_largefilewrapper.h" #include