diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-10-06 05:04:51 +0000 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:39:33 +0200 |
commit | db5d4d6acf462983d9ae20cb9a964dae3608af1c (patch) | |
tree | 4c636c0b3c4593ad1e7e889b79903e0a59979767 | |
parent | 97bc8bbe5dd330483b5b0a90de68624421bc2de2 (diff) |
Fix sibs builds for haiku
-rw-r--r-- | backend/ninja/Ninja.cpp | 4 | ||||
-rw-r--r-- | 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 |