]> granicus.if.org Git - clang/commitdiff
Fix compilation on Linux, which defines PATH_MAX in a weird place,
authorDouglas Gregor <dgregor@apple.com>
Tue, 22 Jan 2013 23:49:45 +0000 (23:49 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 22 Jan 2013 23:49:45 +0000 (23:49 +0000)
from Saleem Abdulrasool!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173208 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/HeaderSearch.cpp
lib/Lex/ModuleMap.cpp

index 4982ce4ac082dc1ad99d4d278ace962dfee4f9ee..14d44cc3da29e5984bbe2c0cec4096bd968d534a 100644 (file)
 #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 *
index 72e79511eeb1539946fc012e9ca0086a97988242..25e5bee9ce3a8b95db89c59527fb53f1deeccdf0 100644 (file)
 #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