commit f92c6cf0cf8e726f9207ae67b1900eda29a92001
parent 4e064859b7e6b48b8e8d1a9b262ee399d5ddb25d
Author: Marcel Holtmann <marcel@holtmann.org>
Date: Tue, 10 Feb 2026 08:56:38 +0100
crypto: Fix build issue with missing _GNU_SOURCE
CC src/crypto.o
src/crypto.c: In function ‘aes_unwrap’:
src/crypto.c:187:9: error: implicit declaration of function ‘explicit_bzero’ [-Wimplicit-function-declaration]
187 | explicit_bzero(&b[1], 8);
| ^~~~~~~~~~~~~~
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/crypto.c b/src/crypto.c
@@ -26,6 +26,7 @@
#include <config.h>
#endif
+#define _GNU_SOURCE
#include <stdbool.h>
#include <string.h>
#include <errno.h>