summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-01-26 03:47:18 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-01-26 03:47:18 +0000
commit69ee7d5c522e40b0c44126ca03d2f4539eff28f0 (patch)
tree8b4558cb108d792adf168d4103a621ab20687264
parent269e6377dd4bd7ca939bc9af63634d2dff049ff7 (diff)
downloadbcm5719-llvm-69ee7d5c522e40b0c44126ca03d2f4539eff28f0.tar.gz
bcm5719-llvm-69ee7d5c522e40b0c44126ca03d2f4539eff28f0.zip
Rewrite/FrontendActions.cpp: Tweak to unbreak msvc.
llvm-svn: 149041
-rw-r--r--clang/lib/Rewrite/FrontendActions.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/Rewrite/FrontendActions.cpp b/clang/lib/Rewrite/FrontendActions.cpp
index 66affb080c5..b726d760413 100644
--- a/clang/lib/Rewrite/FrontendActions.cpp
+++ b/clang/lib/Rewrite/FrontendActions.cpp
@@ -23,7 +23,13 @@
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/FileSystem.h"
+
+// FIXME: This is terrible, we need this for ::close.
+#if !defined(_MSC_VER)
#include <unistd.h>
+#else
+#include <io.h>
+#endif
using namespace clang;
OpenPOWER on IntegriCloud