commit de3c8ab3fb6823a83388f9e5501d2dad5bdb2632
parent 67ae0ac8b10614bb183aec94b15f41336a47be06
Author: Marcel Holtmann <marcel@holtmann.org>
Date: Tue, 10 Feb 2026 16:50:07 +0100
mschaputil: Fix build issue with missing _GNU_SOURCE
CC src/mschaputil.o
src/mschaputil.c: In function ‘mschap_des_encrypt’:
src/mschaputil.c:55:9: error: implicit declaration of function ‘explicit_bzero’ [-Wimplicit-function-declaration]
55 | explicit_bzero(pkey, 8);
| ^~~~~~~~~~~~~~
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/mschaputil.c b/src/mschaputil.c
@@ -24,6 +24,9 @@
#include <config.h>
#endif
+#define _GNU_SOURCE
+#include <string.h>
+
#include <ell/ell.h>
#include "src/missing.h"