From: Niels Möller Date: Fri, 5 Aug 2022 19:23:10 +0000 (+0200) Subject: Fix alloca warnings on bsd systems. X-Git-Tag: nettle_3.9_release_20230514~86 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fae01ac059343d153610ec7a8334172e302d495c;p=thirdparty%2Fnettle.git Fix alloca warnings on bsd systems. * nettle-internal.h: Include stdlib.h, fix alloca warnings on BSD. * hmac.c: Delete corresponding include here, no longer needed. --- diff --git a/ChangeLog b/ChangeLog index 0416b59c..e7dbb612 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2022-08-05 Niels Möller + * nettle-internal.h: Include stdlib.h, fix alloca warnings on BSD. + * hmac.c: Delete corresponding include here, no longer needed. + * getopt.c: Include stdlib.h and unistd.h unconditionally, similarly to the gnulib version of this file. diff --git a/hmac.c b/hmac.c index 6ac5e11a..ea356970 100644 --- a/hmac.c +++ b/hmac.c @@ -36,8 +36,6 @@ #endif #include -/* Needed for alloca on freebsd */ -#include #include #include "hmac.h" diff --git a/nettle-internal.h b/nettle-internal.h index ddc483de..92416400 100644 --- a/nettle-internal.h +++ b/nettle-internal.h @@ -36,6 +36,8 @@ #define NETTLE_INTERNAL_H_INCLUDED #include +/* Needed for alloca on bsd systems. */ +#include #include "nettle-meta.h"