diff options
author | Manuel Klimek <klimek@google.com> | 2012-05-07 10:02:55 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2012-05-07 10:02:55 +0000 |
commit | ed5ee48872118ba3e8f747c7133d7adcacb73850 (patch) | |
tree | e69500302cae1c42ec6d6323eb50566b0b251141 /lib/Tooling/Tooling.cpp | |
parent | 3b6e319c05a3f9858cbc1ceb68fd1b1895b6d2dc (diff) |
Fix includes for unices that don't have chdir declared transitively.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156302 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Tooling/Tooling.cpp')
-rw-r--r-- | lib/Tooling/Tooling.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Tooling/Tooling.cpp b/lib/Tooling/Tooling.cpp index 9eb186b86c..9b4d4e2e23 100644 --- a/lib/Tooling/Tooling.cpp +++ b/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 { |