diff options
author | kwesolowski <krzysztof.wesolowski@rainlabs.pl> | 2014-10-25 13:21:53 (GMT) |
---|---|---|
committer | kwesolowski <krzysztof.wesolowski@rainlabs.pl> | 2014-10-25 13:21:53 (GMT) |
commit | 77e3f6032463a732ce4a91e02f9668eaf66b60cb (patch) | |
tree | b1058ac889021acfb15188c3b4c53aacb04bcc36 /src | |
parent | 165b6d189c916ba1a2c19b5b193829b691150a65 (diff) | |
download | Ninja-77e3f6032463a732ce4a91e02f9668eaf66b60cb.zip Ninja-77e3f6032463a732ce4a91e02f9668eaf66b60cb.tar.gz Ninja-77e3f6032463a732ce4a91e02f9668eaf66b60cb.tar.bz2 |
Fixed cygwin compatibility (issue #806)
Fixed platform specific issues causing cygwin build to fail.
Diffstat (limited to 'src')
-rw-r--r-- | src/util.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util.cc b/src/util.cc index 8b69b71..4d0ceae 100644 --- a/src/util.cc +++ b/src/util.cc @@ -14,7 +14,10 @@ #include "util.h" -#ifdef _WIN32 +#ifdef __CYGWIN__ +#include <windows.h> +#include <io.h> +#elif defined( _WIN32) #include <windows.h> #include <io.h> #include <share.h> |