summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2012-05-07 10:02:55 +0000
committerManuel Klimek <klimek@google.com>2012-05-07 10:02:55 +0000
commitf33dcb044956f18d508ca53e9ffb8f0d59300457 (patch)
tree2ba7b4bdd39f1ed4e39e008a692697abbb9e7e1a /clang/lib
parent74cec54b80d3bfc4c14f35494d43118b7b3b6b9a (diff)
downloadbcm5719-llvm-f33dcb044956f18d508ca53e9ffb8f0d59300457.tar.gz
bcm5719-llvm-f33dcb044956f18d508ca53e9ffb8f0d59300457.zip
Fix includes for unices that don't have chdir declared transitively.
llvm-svn: 156302
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Tooling/Tooling.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Tooling/Tooling.cpp b/clang/lib/Tooling/Tooling.cpp
index 9eb186b86cf..9b4d4e2e239 100644
--- a/clang/lib/Tooling/Tooling.cpp
+++ b/clang/lib/Tooling/Tooling.cpp
@@ -26,9 +26,11 @@
#include "llvm/Support/Host.h"
#include "llvm/Support/raw_ostream.h"
-#ifdef _WIN32
// For chdir, see the comment in ClangTool::run for more information.
+#ifdef _WIN32
# include <direct.h>
+#else
+# include <unistd.h>
#endif
namespace clang {
OpenPOWER on IntegriCloud