Module Name:    src
Committed By:   lukem
Date:           Tue May 23 20:15:58 UTC 2023

Modified Files:
        src/external/gpl3/autoconf/dist/lib/autoconf: functions.m4

Log Message:
autoconf: AC_FUNC_ALLOCA(): add local fix for BSD support

Add local fix to AC_FUNC_ALLOCA() to include <stdlib.h> on BSD:
 # elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) 
|| defined(__OpenBSD__)
 #   include <stdlib.h>

This change avoids regen losing this change in tools/compat/configure
that was added in rev 1.75 on 2013-03-05 of tools/compat/configure,
and subsequent commits that keep re-adding these lines back
manually (e.g., rev 1.97 on 2019-06-22 of tools/compat/configure)

XXX: Arguably this could be fixed in a separate way to allow us to
use an unmodified modern autoconf in the future ?


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
    src/external/gpl3/autoconf/dist/lib/autoconf/functions.m4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/autoconf/dist/lib/autoconf/functions.m4
diff -u src/external/gpl3/autoconf/dist/lib/autoconf/functions.m4:1.1.1.1 src/external/gpl3/autoconf/dist/lib/autoconf/functions.m4:1.2
--- src/external/gpl3/autoconf/dist/lib/autoconf/functions.m4:1.1.1.1	Sat Jan 16 18:36:00 2016
+++ src/external/gpl3/autoconf/dist/lib/autoconf/functions.m4	Tue May 23 20:15:58 2023
@@ -384,6 +384,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