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 <alan.coopersmith@oracle.com>
#define GNUTLS_NETTLE_INT_NETTLE_INTERNAL_H_INCLUDED
#include <assert.h>
+#ifdef HAVE_ALLOCA_H
+#include <alloca.h>
+#endif
/* Needed for alloca on bsd systems. */
#include <stdlib.h>