* [PATCH] sae: fix missing reallocarray definition
@ 2022-01-26 18:01 James Prestwood
0 siblings, 0 replies; only message in thread
From: James Prestwood @ 2022-01-26 18:01 UTC (permalink / raw)
To: iwd
[-- Attachment #1: Type: text/plain, Size: 652 bytes --]
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=implicit-function-declaration]
sm->rejected_groups = 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 <config.h>
#endif
+#include <malloc.h>
+
#include <ell/ell.h>
#include "src/missing.h"
--
2.31.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-26 18:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-26 18:01 [PATCH] sae: fix missing reallocarray definition James Prestwood
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.