]> granicus.if.org Git - clang/commitdiff
Fix includes for unices that don't have chdir declared transitively.
authorManuel Klimek <klimek@google.com>
Mon, 7 May 2012 10:02:55 +0000 (10:02 +0000)
committerManuel Klimek <klimek@google.com>
Mon, 7 May 2012 10:02:55 +0000 (10:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156302 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Tooling/Tooling.cpp

index 9eb186b86cf70152406377651418b80fcf0febfb..9b4d4e2e239a1343fc03da9a35bc12d72ba2e746 100644 (file)
 #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 {