summaryrefslogtreecommitdiffstats
path: root/src/util.cc
diff options
context:
space:
mode:
authorPaul Kunysch <kunysch@me.com>2013-02-09 12:19:13 (GMT)
committerPaul Kunysch <kunysch@me.com>2013-02-09 12:19:13 (GMT)
commitbed9541e7f5123612dbcb1840ee096a92c2e18dc (patch)
treebc0da46cd08671355aaca0c927a3ce88d6ba665c /src/util.cc
parent05736568b9a26599865dd7452e62f70ecdbc9e41 (diff)
downloadNinja-bed9541e7f5123612dbcb1840ee096a92c2e18dc.zip
Ninja-bed9541e7f5123612dbcb1840ee096a92c2e18dc.tar.gz
Ninja-bed9541e7f5123612dbcb1840ee096a92c2e18dc.tar.bz2
util.cc: Reusing windows workaround for cygwin.
This fixes: src/util.cc: In function 'double GetLoadAverage()': src/util.cc:337:28: error: 'getloadavg' was not declared in this scope
Diffstat (limited to 'src/util.cc')
-rw-r--r--src/util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cc b/src/util.cc
index 50e3842..91e8fad 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -325,7 +325,7 @@ int GetProcessorCount() {
}
#endif
-#ifdef _WIN32
+#if defined(_WIN32) || defined(__CYGWIN__)
double GetLoadAverage() {
// TODO(nicolas.despres@gmail.com): Find a way to implement it on Windows.
// Remember to also update Usage() when this is fixed.