Content-Type: multipart/mixed; boundary="===============0334653449101691060==" MIME-Version: 1.0 From: James Prestwood To: iwd at lists.01.org Subject: [PATCH v2] sae: fix missing reallocarray definition Date: Wed, 26 Jan 2022 10:19:42 -0800 Message-ID: <20220126181942.3165190-1-prestwoj@gmail.com> --===============0334653449101691060== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Building on GCC 8 resulted in this compiler error. Newer versions seem to find malloc.h without the include, but not on GCC 8. src/sae.c:107:25: error: implicit declaration of function 'reallocarray'; did you mean 'realloc'? [-Werror=3Dimplicit-function-declaration] sm->rejected_groups =3D reallocarray(NULL, 2, sizeof(uint16_t)); --- src/sae.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sae.c b/src/sae.c index dc07db4b..9515b455 100644 --- a/src/sae.c +++ b/src/sae.c @@ -24,6 +24,8 @@ #include #endif = +#include + #include = #include "src/missing.h" -- = 2.31.1 --===============0334653449101691060==--