summaryrefslogtreecommitdiffstats
path: root/clang/tools
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-12-15 05:53:37 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-12-15 05:53:37 +0000
commita0caa29d6f591026362cdfa44a390432e05d7b71 (patch)
tree465acdbc039073a16fe1e3794f27319b9f4497bb /clang/tools
parentd99472f4cdb0a1220f12af9094de25af1daf86aa (diff)
downloadbcm5719-llvm-a0caa29d6f591026362cdfa44a390432e05d7b71.tar.gz
bcm5719-llvm-a0caa29d6f591026362cdfa44a390432e05d7b71.zip
Revert r146646 that was a mistake, and make the intended change in the right file.
Log: [libclang] Try to unbreak mingw build. llvm-svn: 146647
Diffstat (limited to 'clang/tools')
-rw-r--r--clang/tools/libclang/CIndex.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp
index bccd927ca2c..386921c49e8 100644
--- a/clang/tools/libclang/CIndex.cpp
+++ b/clang/tools/libclang/CIndex.cpp
@@ -46,6 +46,16 @@
#include "llvm/Support/Signals.h"
#include "llvm/Support/Threading.h"
#include "llvm/Support/Compiler.h"
+#include <cstdlib>
+
+#if LLVM_ON_WIN32
+#include <windows.h>
+#include <io.h>
+#include <fcntl.h>
+#endif
+#if LLVM_ON_UNIX
+#include <unistd.h>
+#endif
using namespace clang;
using namespace clang::cxcursor;
OpenPOWER on IntegriCloud