commit 534a41c0737d0e93aee3a9deb85927be86b3cd09
parent 2170b918345d833ac95d2551bea7065d5b4d1a36
Author: Marcel Holtmann <marcel@holtmann.org>
Date: Tue, 10 Feb 2026 09:14:26 +0100
ap: Fix build issue with missing _GNU_SOURCE
CC src/ap.o
src/ap.c: In function ‘ap_reset’:
src/ap.c:286:9: error: implicit declaration of function ‘explicit_bzero’ [-Wimplicit-function-declaration]
286 | explicit_bzero(ap->passphrase, sizeof(ap->passphrase));
| ^~~~~~~~~~~~~~
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/ap.c b/src/ap.c
@@ -24,6 +24,7 @@
#include <config.h>
#endif
+#define _GNU_SOURCE
#include <errno.h>
#include <linux/if_ether.h>
#include <netinet/in.h>