Permalink
Browse files

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
  • Loading branch information...
1 parent 0573656 commit bed9541e7f5123612dbcb1840ee096a92c2e18dc @pck pck committed Feb 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/util.cc
View
@@ -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.

0 comments on commit bed9541

Please sign in to comment.