commit e81f078bfd867413b3500ba5d815837995f6d56a
parent 13382cbb47e6db161e2cdee3c18c07fe23c132f0
Author: Marcel Holtmann <marcel@holtmann.org>
Date: Tue, 10 Feb 2026 16:40:41 +0100
eap-mschapv2: Fix build issue with missing _GNU_SOURCE
CC src/eap-mschapv2.o
src/eap-mschapv2.c: In function ‘eap_mschapv2_state_free’:
src/eap-mschapv2.c:202:9: error: implicit declaration of function ‘explicit_bzero’ [-Wimplicit-function-declaration]
202 | explicit_bzero(state->password_hash, sizeof(state->password_hash));
| ^~~~~~~~~~~~~~
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/eap-mschapv2.c b/src/eap-mschapv2.c
@@ -24,9 +24,11 @@
#include <config.h>
#endif
+#define _GNU_SOURCE
#include <ctype.h>
#include <stdio.h>
#include <errno.h>
+#include <string.h>
#include <ell/ell.h>
#include "src/missing.h"