From db5d4d6acf462983d9ae20cb9a964dae3608af1c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 6 Oct 2018 05:04:51 +0000 Subject: Fix sibs builds for haiku --- backend/ninja/Ninja.cpp | 4 ++-- src/FileUtil.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/ninja/Ninja.cpp b/backend/ninja/Ninja.cpp index bad224a..a212280 100644 --- a/backend/ninja/Ninja.cpp +++ b/backend/ninja/Ninja.cpp @@ -1337,7 +1337,7 @@ namespace backend } // TODO: Add flag to disable -ldl and -lm (dlopen, dlclose, floor, max, ...) -#if OS_TYPE == OS_TYPE_OPENBSD +#if OS_TYPE == OS_TYPE_OPENBSD || OS_TYPE == OS_TYPE_HAIKU buildExeArgs.insert(buildExeArgs.end(), { ninja::NinjaArg::createRaw("-lm") }); @@ -1553,7 +1553,7 @@ namespace backend } // TODO: Add flag to disable -ldl and -lm (dlopen, dlclose, floor, max, ...) -#if OS_TYPE == OS_TYPE_OPENBSD +#if OS_TYPE == OS_TYPE_OPENBSD || OS_TYPE == OS_TYPE_HAIKU buildDynamicArgs.insert(buildDynamicArgs.end(), { ninja::NinjaArg::createRaw("-lm") }); diff --git a/src/FileUtil.cpp b/src/FileUtil.cpp index 4485878..b41808b 100644 --- a/src/FileUtil.cpp +++ b/src/FileUtil.cpp @@ -16,7 +16,7 @@ using namespace std; -#if OS_TYPE == OS_TYPE_OPENBSD || OS_TYPE == OS_TYPE_HAIKU +#if OS_TYPE != OS_TYPE_LINUX && OS_TYPE != OS_TYPE_APPLE && OS_TYPE != OS_TYPE_WINDOWS #define stat64 stat #endif -- cgit v1.2.3