On FreeBSD, make sure /usr/local/include is *not* in the default include

path.  This avoids accidentally including the wrong headers.

Patch by Dimitry Andric!

llvm-svn: 126761
This commit is contained in:
Roman Divacky 2011-03-01 18:08:03 +00:00
parent 2e5065d889
commit 315c1675e8
1 changed files with 1 additions and 0 deletions

View File

@ -428,6 +428,7 @@ void InitHeaderSearch::AddDefaultCIncludePaths(const llvm::Triple &triple,
llvm::Triple::OSType os = triple.getOS(); llvm::Triple::OSType os = triple.getOS();
switch (os) { switch (os) {
case llvm::Triple::FreeBSD:
case llvm::Triple::NetBSD: case llvm::Triple::NetBSD:
break; break;
default: default: