summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorkwesolowski <krzysztof.wesolowski@rainlabs.pl>2014-10-25 13:21:53 (GMT)
committerkwesolowski <krzysztof.wesolowski@rainlabs.pl>2014-10-25 13:21:53 (GMT)
commit77e3f6032463a732ce4a91e02f9668eaf66b60cb (patch)
treeb1058ac889021acfb15188c3b4c53aacb04bcc36 /src
parent165b6d189c916ba1a2c19b5b193829b691150a65 (diff)
downloadNinja-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.cc5
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>