summaryrefslogtreecommitdiffstats
path: root/clang/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
commit01c7cfa2c058892d0c331711f912d24bbe63dde2 (patch)
tree7dd32b19ba5b5a3e82188433d4bdc5d55c46f9a9 /clang/lib/Lex/HeaderSearch.cpp
parent1a06479f4641995866b42b420ba9cc684c214c9a (diff)
downloadbcm5719-llvm-01c7cfa2c058892d0c331711f912d24bbe63dde2.tar.gz
bcm5719-llvm-01c7cfa2c058892d0c331711f912d24bbe63dde2.zip
Fix compilation on Linux, which defines PATH_MAX in a weird place,
from Saleem Abdulrasool! llvm-svn: 173208
Diffstat (limited to 'clang/lib/Lex/HeaderSearch.cpp')
-rw-r--r--clang/lib/Lex/HeaderSearch.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Lex/HeaderSearch.cpp b/clang/lib/Lex/HeaderSearch.cpp
index 4982ce4ac08..14d44cc3da2 100644
--- a/clang/lib/Lex/HeaderSearch.cpp
+++ b/clang/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 *
OpenPOWER on IntegriCloud