<div dir="ltr">Hi;<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 23, 2013 at 12:49 AM, Douglas Gregor <span dir="ltr"><<a href="mailto:dgregor@apple.com" target="_blank">dgregor@apple.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: dgregor<br>
Date: Tue Jan 22 17:49:45 2013<br>
New Revision: 173208<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=173208&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=173208&view=rev</a><br>
Log:<br>
Fix compilation on Linux, which defines PATH_MAX in a weird place,<br>
from Saleem Abdulrasool!<br>
<br>
Modified:<br>
    cfe/trunk/lib/Lex/HeaderSearch.cpp<br>
    cfe/trunk/lib/Lex/ModuleMap.cpp<br>
<br>
Modified: cfe/trunk/lib/Lex/HeaderSearch.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/HeaderSearch.cpp?rev=173208&r1=173207&r2=173208&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/HeaderSearch.cpp?rev=173208&r1=173207&r2=173208&view=diff</a><br>


==============================================================================<br>
--- cfe/trunk/lib/Lex/HeaderSearch.cpp (original)<br>
+++ cfe/trunk/lib/Lex/HeaderSearch.cpp Tue Jan 22 17:49:45 2013<br>
@@ -23,6 +23,11 @@<br>
 #include "llvm/Support/FileSystem.h"<br>
 #include "llvm/Support/Path.h"<br>
 #include <cstdio><br>
+#if defined(LLVM_ON_UNIX)<br>
+#if defined(__linux__)<br>
+#include <linux/limits.h><br>
+#endif<br>
+#endif<br>
 using namespace clang;<br></blockquote><div><br></div><div style>Headers under linux/* is not for userspace consumption. The correct header file is <limits.h>.</div><div style><br></div><div style>ismail</div><div style>

 </div></div></div></div>