commit 3f130f7f34c8f7084cfcd61ed829e060ae544b95
parent 169bd75678bec8605c48ba43cf81701bbe19c62c
Author: Marcel Holtmann <marcel@holtmann.org>
Date: Tue, 10 Feb 2026 16:48:20 +0100
eap-pwd: Fix build issue with missing _GNU_SOURCE
CC src/eap-pwd.o
src/eap-pwd.c: In function ‘eap_pwd_free’:
src/eap-pwd.c:177:17: error: implicit declaration of function ‘explicit_bzero’ [-Wimplicit-function-declaration]
177 | explicit_bzero(pwd->password, strlen(pwd->password));
| ^~~~~~~~~~~~~~
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/eap-pwd.c b/src/eap-pwd.c
@@ -24,7 +24,9 @@
#include <config.h>
#endif
+#define _GNU_SOURCE
#include <stdio.h>
+#include <string.h>
#include <ell/ell.h>