aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend/ninja/Ninja.cpp4
-rw-r--r--src/FileUtil.cpp2
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