From 3cc6277a3dd4986af6422e41db18ba6efddbd800 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 22 Jan 2013 23:49:45 +0000 Subject: Fix compilation on Linux, which defines PATH_MAX in a weird place, from Saleem Abdulrasool! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173208 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Lex/ModuleMap.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/Lex/ModuleMap.cpp') diff --git a/lib/Lex/ModuleMap.cpp b/lib/Lex/ModuleMap.cpp index 72e79511ee..25e5bee9ce 100644 --- a/lib/Lex/ModuleMap.cpp +++ b/lib/Lex/ModuleMap.cpp @@ -28,6 +28,11 @@ #include "llvm/Support/PathV2.h" #include "llvm/Support/raw_ostream.h" #include +#if defined(LLVM_ON_UNIX) +#if defined(__linux__) +#include +#endif +#endif using namespace clang; Module::ExportDecl -- cgit v1.2.3