diff options
author | Nico Weber <thakis@chromium.org> | 2012-04-30 15:04:10 (GMT) |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2012-04-30 15:04:10 (GMT) |
commit | 5214b6664a42c28ac844acbed2cff84ae44abd16 (patch) | |
tree | 0ffa1cf0aefe7be02c7d4375568bda7635faaf7f | |
parent | 3e9cb5d72ae6ea6faab4b7bdb7781d130590e799 (diff) | |
download | Ninja-5214b6664a42c28ac844acbed2cff84ae44abd16.zip Ninja-5214b6664a42c28ac844acbed2cff84ae44abd16.tar.gz Ninja-5214b6664a42c28ac844acbed2cff84ae44abd16.tar.bz2 |
Fix Windows build.
-rw-r--r-- | src/build.h | 2 | ||||
-rw-r--r-- | src/build_log.cc | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/build.h b/src/build.h index 407aecc..ddd9db8 100644 --- a/src/build.h +++ b/src/build.h @@ -193,7 +193,7 @@ struct BuildStatus { const char* progress_status_format_; #ifdef _WIN32 - HANDLE console_; + void* console_; #endif }; diff --git a/src/build_log.cc b/src/build_log.cc index 0cecd70..f5ba9a2 100644 --- a/src/build_log.cc +++ b/src/build_log.cc @@ -17,7 +17,10 @@ #include <errno.h> #include <stdlib.h> #include <string.h> + +#ifndef _WIN32 #include <unistd.h> +#endif #include "build.h" #include "graph.h" |