projects
/
platform
/
upstream
/
ninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0573656
)
util.cc: Reusing windows workaround for cygwin.
author
Paul Kunysch
<kunysch@me.com>
Sat, 9 Feb 2013 12:19:13 +0000
(13:19 +0100)
committer
Paul Kunysch
<kunysch@me.com>
Sat, 9 Feb 2013 12:19:13 +0000
(13:19 +0100)
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
patch
|
blob
|
history
diff --git
a/src/util.cc
b/src/util.cc
index 50e3842b0f857e7c1f9396921672426d557279da..91e8fada822ec97a5c8307cb69561f5ecacbc737 100644
(file)
--- a/
src/util.cc
+++ b/
src/util.cc
@@
-325,7
+325,7
@@
int GetProcessorCount() {
}
#endif
-#if
def _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.