From: Benjamin Kramer Date: Mon, 5 Oct 2015 14:06:36 +0000 (+0000) Subject: [VFS] Fix the windows build by including the right headers. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e7c05dab8cabf9dcaed2a2f7c3fc57ac6879fe3;p=clang [VFS] Fix the windows build by including the right headers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249319 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/VirtualFileSystem.cpp b/lib/Basic/VirtualFileSystem.cpp index d559bee977..dac0e5ff36 100644 --- a/lib/Basic/VirtualFileSystem.cpp +++ b/lib/Basic/VirtualFileSystem.cpp @@ -19,9 +19,17 @@ #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/Path.h" #include "llvm/Support/YAMLParser.h" +#include "llvm/Config/llvm-config.h" #include #include +// For chdir. +#ifdef LLVM_ON_WIN32 +# include +#else +# include +#endif + using namespace clang; using namespace clang::vfs; using namespace llvm;