Skip to contentSkip to conversation

sae: define _GNU_SOURCE for reallocarray definition

PATCH Applied James Prestwood 2 participants 2 messages Feb 24, 2022

lore
Share & tools
lore

James Prestwood

author
#0 lore raw

PATCH 1/1 sae: define _GNU_SOURCE for reallocarray definition

sae.c was failing to build on some platforms:

error: implicit declaration of function 'reallocarray'; did you mean 'realloc'?
[-Werror=implicit-function-declaration]

---
 src/sae.c | 1 +
 1 file changed, 1 insertion(+)
src/sae.c +1 -0
index a4150628..859ec94b 100644
@@ -24,6 +24,7 @@
 #include <config.h>
 #endif
 
+#define _GNU_SOURCE
 #include <stdlib.h>
 
 #include <ell/ell.h>
Signature · 1 line
2.34.1
Applied
#1 lore raw

Hi James,

Quoted 7 lines · James Prestwood

sae.c was failing to build on some platforms:

error: implicit declaration of function 'reallocarray'; did you mean 'realloc'?
[-Werror=implicit-function-declaration]

---
  src/sae.c | 1 +
  1 file changed, 1 insertion(+)

Applied, thanks.

Regards,
-Denis