From bed9541e7f5123612dbcb1840ee096a92c2e18dc Mon Sep 17 00:00:00 2001 From: Paul Kunysch Date: Sat, 9 Feb 2013 13:19:13 +0100 Subject: [PATCH] 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 --- src/util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.34.1