Don't include alloca.h on FreeBSD.

llvm-svn: 6728
This commit is contained in:
Brian Gaeke 2003-06-16 23:57:13 +00:00
parent 55491774bb
commit 32f27e9f45
1 changed files with 2 additions and 0 deletions

View File

@ -528,7 +528,9 @@ static void generateAllocaDecl(std::ostream& Out) {
<< "extern void *__builtin_alloca(unsigned long);\n"
<< "#define alloca(x) __builtin_alloca(x)\n"
<< "#else\n"
<< "#ifndef __FreeBSD__\n"
<< "#include <alloca.h>\n"
<< "#endif\n"
<< "#endif\n\n";
}