summaryrefslogtreecommitdiffstats
path: root/src/build_log_test.cc
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2014-09-18 23:08:25 (GMT)
committerNico Weber <thakis@chromium.org>2014-09-18 23:09:20 (GMT)
commitac047b1f7efe3e90c2759864b57fd7c0d9404313 (patch)
tree22393d34d3ae63cf375841e127a02b8d89cdf65d /src/build_log_test.cc
parentff2739b118ca8a3c2e0f2709a2852acced0d8407 (diff)
downloadNinja-ac047b1f7efe3e90c2759864b57fd7c0d9404313.zip
Ninja-ac047b1f7efe3e90c2759864b57fd7c0d9404313.tar.gz
Ninja-ac047b1f7efe3e90c2759864b57fd7c0d9404313.tar.bz2
Fix building tests on Windows again.
Turns out gtest was pulling in sys/stat.h, and we were using stat() through that in tests. This doesn't work with old MSVCs, so we should probably replace that with RealDiskInterface in a follow-up.
Diffstat (limited to 'src/build_log_test.cc')
-rw-r--r--src/build_log_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build_log_test.cc b/src/build_log_test.cc
index 6738c7b..2c41ba6 100644
--- a/src/build_log_test.cc
+++ b/src/build_log_test.cc
@@ -17,12 +17,12 @@
#include "util.h"
#include "test.h"
+#include <sys/stat.h>
#ifdef _WIN32
#include <fcntl.h>
#include <share.h>
#else
#include <sys/types.h>
-#include <sys/stat.h>
#include <unistd.h>
#endif