diff options
author | Douglas Gregor <dgregor@apple.com> | 2013-01-22 23:49:45 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2013-01-22 23:49:45 +0000 |
commit | 3cc6277a3dd4986af6422e41db18ba6efddbd800 (patch) | |
tree | 97409b3a1f5175a8f3c18c1349f0be0a4336b714 /lib/Lex/ModuleMap.cpp | |
parent | bce9205e430e94918476ae62579f9e3c811294d7 (diff) |
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
Diffstat (limited to 'lib/Lex/ModuleMap.cpp')
-rw-r--r-- | lib/Lex/ModuleMap.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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 <stdlib.h> +#if defined(LLVM_ON_UNIX) +#if defined(__linux__) +#include <linux/limits.h> +#endif +#endif using namespace clang; Module::ExportDecl |