summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAugustin Cavalier <waddlesplash@gmail.com>2017-09-16 10:25:48 (GMT)
committerJérôme Duval <jerome.duval@gmail.com>2021-01-28 11:32:47 (GMT)
commitfba4f7b1e5ba74b8d2f6d9e180dd2bd20aff3f08 (patch)
treebe02da948e3f050168210f023a3b6fa3f8d7491f
parent68f09b03c090840162d1852f1e92afa8e117cc4e (diff)
downloadNinja-fba4f7b1e5ba74b8d2f6d9e180dd2bd20aff3f08.zip
Ninja-fba4f7b1e5ba74b8d2f6d9e180dd2bd20aff3f08.tar.gz
Ninja-fba4f7b1e5ba74b8d2f6d9e180dd2bd20aff3f08.tar.bz2
Add Haiku support.
-rw-r--r--src/util.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.cc b/src/util.cc
index ae2e3c2..1e0d147 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -625,6 +625,10 @@ double GetLoadAverage() {
return -0.0f;
return 1.0 / (1 << SI_LOAD_SHIFT) * si.loads[0];
}
+#elif defined(__HAIKU__)
+double GetLoadAverage() {
+ return -0.0f;
+}
#else
double GetLoadAverage() {
double loadavg[3] = { 0.0f, 0.0f, 0.0f };