From: Alan Coopersmith Date: Tue, 8 Oct 2024 16:51:00 +0000 (-0700) Subject: lib/nettle/int/nettle-internal.h: include alloca.h if configure found it X-Git-Tag: 3.8.8~7^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f2d774197cfecbe5dea852b3acb4abbdbd49660;p=thirdparty%2Fgnutls.git lib/nettle/int/nettle-internal.h: include alloca.h if configure found it Needed for alloca definition on Solaris, to avoid build error with gcc 14: lib/nettle/int/nettle-internal.h:59:39: error: implicit declaration of function 'alloca' [-Wimplicit-function-declaration] 59 | #define TMP_ALLOC(name, size) (name = alloca(sizeof(*name) * (size))) | ^~~~~~ Closes #782 Signed-off-by: Alan Coopersmith --- diff --git a/lib/nettle/int/nettle-internal.h b/lib/nettle/int/nettle-internal.h index b0eaaad905..5cf16961eb 100644 --- a/lib/nettle/int/nettle-internal.h +++ b/lib/nettle/int/nettle-internal.h @@ -36,6 +36,9 @@ #define GNUTLS_NETTLE_INT_NETTLE_INTERNAL_H_INCLUDED #include +#ifdef HAVE_ALLOCA_H +#include +#endif /* Needed for alloca on bsd systems. */ #include