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/HeaderSearch.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/HeaderSearch.cpp')
-rw-r--r-- | lib/Lex/HeaderSearch.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Lex/HeaderSearch.cpp b/lib/Lex/HeaderSearch.cpp index 4982ce4ac0..14d44cc3da 100644 --- a/lib/Lex/HeaderSearch.cpp +++ b/lib/Lex/HeaderSearch.cpp @@ -23,6 +23,11 @@ #include "llvm/Support/FileSystem.h" #include "llvm/Support/Path.h" #include <cstdio> +#if defined(LLVM_ON_UNIX) +#if defined(__linux__) +#include <linux/limits.h> +#endif +#endif using namespace clang; const IdentifierInfo * |