Fix compilation on Linux, which defines PATH_MAX in a weird place,

from Saleem Abdulrasool!

llvm-svn: 173208
This commit is contained in:
Douglas Gregor 2013-01-22 23:49:45 +00:00
parent 1a06479f46
commit 01c7cfa2c0
2 changed files with 10 additions and 0 deletions

View File

@ -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 *

View File

@ -28,6 +28,11 @@
#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