Fix alloca build warnings on freebsd (backport from epic).

git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@83 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2010-03-07 07:24:12 +00:00
parent abb5e06233
commit 8c099a4ce3
2 changed files with 5 additions and 1 deletions

View File

@@ -113,7 +113,9 @@
* I took this from the autoconf documentation
*/
#if defined(__GNUC__) && !defined(HAVE_ALLOCA_H)
# define alloca __builtin_alloca
# ifndef alloca
# define alloca __builtin_alloca
# endif
#else
# if HAVE_ALLOCA_H
# include <alloca.h>