diff options
author | Paul Kunysch <kunysch@me.com> | 2013-02-09 12:19:13 (GMT) |
---|---|---|
committer | Paul Kunysch <kunysch@me.com> | 2013-02-09 12:19:13 (GMT) |
commit | bed9541e7f5123612dbcb1840ee096a92c2e18dc (patch) | |
tree | bc0da46cd08671355aaca0c927a3ce88d6ba665c /src | |
parent | 05736568b9a26599865dd7452e62f70ecdbc9e41 (diff) | |
download | Ninja-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')
-rw-r--r-- | src/util.cc | 2 |
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. |