From 01c7cfa2c058892d0c331711f912d24bbe63dde2 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! llvm-svn: 173208 --- clang/lib/Lex/ModuleMap.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'clang/lib/Lex/ModuleMap.cpp') diff --git a/clang/lib/Lex/ModuleMap.cpp b/clang/lib/Lex/ModuleMap.cpp index 72e79511eeb..25e5bee9ce3 100644 --- a/clang/lib/Lex/ModuleMap.cpp +++ b/clang/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