Wireless Daemon for Linux
 help / color / mirror / Atom feed
* [PATCH] sae: define _GNU_SOURCE for reallocarray definition
@ 2022-02-24 18:00 James Prestwood
  0 siblings, 0 replies; 2+ messages in thread
From: James Prestwood @ 2022-02-24 18:00 UTC (permalink / raw)
  To: iwd 

[-- Attachment #1: Type: text/plain, Size: 469 bytes --]

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(+)

diff --git a/src/sae.c b/src/sae.c
index a4150628..859ec94b 100644
--- a/src/sae.c
+++ b/src/sae.c
@@ -24,6 +24,7 @@
 #include <config.h>
 #endif
 
+#define _GNU_SOURCE
 #include <stdlib.h>
 
 #include <ell/ell.h>
-- 
2.34.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] sae: define _GNU_SOURCE for reallocarray definition
@ 2022-02-24 18:15 Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2022-02-24 18:15 UTC (permalink / raw)
  To: iwd 

[-- Attachment #1: Type: text/plain, Size: 339 bytes --]

Hi James,

On 2/24/22 12:00, James Prestwood wrote:
> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-24 18:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-24 18:15 [PATCH] sae: define _GNU_SOURCE for reallocarray definition Denis Kenzior
  -- strict thread matches above, loose matches on Subject: below --
2022-02-24 18:00 James Prestwood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox