aboutsummaryrefslogtreecommitdiff
path: root/lib/Lex/HeaderSearch.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-01-22 23:49:45 +0000
committerDouglas Gregor <dgregor@apple.com>2013-01-22 23:49:45 +0000
commit3cc6277a3dd4986af6422e41db18ba6efddbd800 (patch)
tree97409b3a1f5175a8f3c18c1349f0be0a4336b714 /lib/Lex/HeaderSearch.cpp
parentbce9205e430e94918476ae62579f9e3c811294d7 (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.cpp5
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 *