Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
AC_FUNC_ALLOCA should never define a prototype on the BSDs. Bump revi…
…sion.
  • Loading branch information
jsonn committed Jul 29, 2010
1 parent decfbf4 commit 4143432
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
4 changes: 2 additions & 2 deletions devel/autoconf/Makefile
@@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.75 2010/07/24 20:46:16 tron Exp $
# $NetBSD: Makefile,v 1.76 2010/07/29 15:49:36 joerg Exp $

DISTNAME= autoconf-2.65
PKGREVISION= 1
PKGREVISION= 2
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=autoconf/}

Expand Down
3 changes: 2 additions & 1 deletion devel/autoconf/distinfo
@@ -1,5 +1,6 @@
$NetBSD: distinfo,v 1.23 2010/07/24 20:46:16 tron Exp $
$NetBSD: distinfo,v 1.24 2010/07/29 15:49:36 joerg Exp $

SHA1 (autoconf-2.65.tar.gz) = ae9e1ab046822007f25c88e1d8f2166e065da8c2
RMD160 (autoconf-2.65.tar.gz) = 67cf709b61290b47255ccdb2c3113bcd04c42ecd
Size (autoconf-2.65.tar.gz) = 1738880 bytes
SHA1 (patch-aa) = 481aec3f9d8c4b523ff27db50fccf6d219f36ffe
16 changes: 16 additions & 0 deletions devel/autoconf/patches/patch-aa
@@ -0,0 +1,16 @@
$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>

0 comments on commit 4143432

Please sign in to comment.