[cfe-commits] r156302 - /cfe/trunk/lib/Tooling/Tooling.cpp

Manuel Klimek klimek at google.com
Mon May 7 03:02:55 PDT 2012


Author: klimek
Date: Mon May  7 05:02:55 2012
New Revision: 156302

URL: http://llvm.org/viewvc/llvm-project?rev=156302&view=rev
Log:
Fix includes for unices that don't have chdir declared transitively.


Modified:
    cfe/trunk/lib/Tooling/Tooling.cpp

Modified: cfe/trunk/lib/Tooling/Tooling.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Tooling/Tooling.cpp?rev=156302&r1=156301&r2=156302&view=diff
==============================================================================
--- cfe/trunk/lib/Tooling/Tooling.cpp (original)
+++ cfe/trunk/lib/Tooling/Tooling.cpp Mon May  7 05:02:55 2012
@@ -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 {





More information about the cfe-commits mailing list