From 8c099a4ce3e1c006305a2e244564deecc648ab1d Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Sun, 7 Mar 2010 07:24:12 +0000 Subject: [PATCH] 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 --- Changelog | 2 ++ include/irc_std.h | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index da60a11..cfaedb7 100644 --- a/Changelog +++ b/Changelog @@ -1,5 +1,7 @@ [Changes 1.2c01] +* Fix alloca warnings on freebsd. (caf) + * Fix memory leak in banlist.c. (caf) * Apply a fix contributed by cpet for the configure script on diff --git a/include/irc_std.h b/include/irc_std.h index 7c7a47e..621fdc9 100644 --- a/include/irc_std.h +++ b/include/irc_std.h @@ -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