]> granicus.if.org Git - clang/commitdiff
[VFS] Fix the windows build by including the right headers.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 5 Oct 2015 14:06:36 +0000 (14:06 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 5 Oct 2015 14:06:36 +0000 (14:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249319 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/VirtualFileSystem.cpp

index d559bee97796d9efd51f58ad3f3065da9d64c796..dac0e5ff36e5a903cc5a0666c7f2742cc53c7ba4 100644 (file)
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/Path.h"
 #include "llvm/Support/YAMLParser.h"
+#include "llvm/Config/llvm-config.h"
 #include <atomic>
 #include <memory>
 
+// For chdir.
+#ifdef LLVM_ON_WIN32
+#  include <direct.h>
+#else
+#  include <unistd.h>
+#endif
+
 using namespace clang;
 using namespace clang::vfs;
 using namespace llvm;