Hi!

Jörg Sonnenberger added the attached patch to the autoconf package in
pkgsrc in 2010; it seems the patch still isn't integrated, so I
thought I'd send it upstream.

The commit message was: AC_FUNC_ALLOCA should never define a prototype
on the BSDs. (The patch comment is "Do not fall through to the
implicit prototype as it conflicts with stdlib.h.")

Please include it in the next release.

Thanks,
 Thomas
$NetBSD: patch-aa,v 1.11 2010/07/29 15:49:36 joerg Exp $

Do not fall through to the implicit prototype as it conflicts with
stdlib.h.

--- lib/autoconf/functions.m4.orig      2010-07-29 15:21:52.000000000 +0000
+++ lib/autoconf/functions.m4
@@ -369,6 +369,8 @@ AC_CACHE_CHECK([for alloca], ac_cv_func_
 # ifdef _MSC_VER
 #  include <malloc.h>
 #  define alloca _alloca
+# elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) 
|| defined(__OpenBSD__)
+#   include <stdlib.h>
 # else
 #  ifdef HAVE_ALLOCA_H
 #   include <alloca.h>

Reply via email to