diff --git a/toonz/sources/CMakeLists.txt b/toonz/sources/CMakeLists.txt index 9eb1149..10cf2a9 100644 --- a/toonz/sources/CMakeLists.txt +++ b/toonz/sources/CMakeLists.txt @@ -476,7 +476,7 @@ elseif(BUILD_ENV_UNIXLIKE) find_package(LZO REQUIRED) message("LZO:" ${LZO_INCLUDE_DIR}) - if(HAIKU) + if(BUILD_TARGET_BSD OR HAIKU) find_library(EXECINFO_LIBRARY execinfo) endif() find_library(PTHREAD_LIBRARY pthread) diff --git a/toonz/sources/common/tsystem/tpluginmanager.cpp b/toonz/sources/common/tsystem/tpluginmanager.cpp index 4c0d20c..8074691 100644 --- a/toonz/sources/common/tsystem/tpluginmanager.cpp +++ b/toonz/sources/common/tsystem/tpluginmanager.cpp @@ -15,12 +15,12 @@ #include #include #include -#ifndef FREEBSD +#if !defined(FREEBSD) || __FreeBSD_version >= 1300040 #include #endif #include #include -#ifndef HAIKU +#if !defined(HAIKU) && (!defined(FREEBSD) || __FreeBSD_version < 1300040) #include #endif #include // for getfsstat