diff options
author | Jan Niklas Hasse <jhasse@bixense.com> | 2021-01-28 22:42:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-28 22:42:13 (GMT) |
commit | 9216c31f29a0aabea09fe2f5120b563dc6e8c93e (patch) | |
tree | be02da948e3f050168210f023a3b6fa3f8d7491f /src | |
parent | 68f09b03c090840162d1852f1e92afa8e117cc4e (diff) | |
parent | fba4f7b1e5ba74b8d2f6d9e180dd2bd20aff3f08 (diff) | |
download | Ninja-9216c31f29a0aabea09fe2f5120b563dc6e8c93e.zip Ninja-9216c31f29a0aabea09fe2f5120b563dc6e8c93e.tar.gz Ninja-9216c31f29a0aabea09fe2f5120b563dc6e8c93e.tar.bz2 |
Merge pull request #1905 from korli/haiku
Add Haiku support.
Diffstat (limited to 'src')
-rw-r--r-- | src/util.cc | 4 |
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 }; |