commit 1cef23cd7bf6f7d0031167dbff9192b79ee7f346
parent a5a67b5de4b8fd316c4f813cd1ae1e2c7fba3b9b
Author: Marcel Holtmann <marcel@holtmann.org>
Date: Tue, 10 Feb 2026 09:08:48 +0100
handshake: Fix build issue with missing _GNU_SOURCE
CC src/handshake.o
src/handshake.c: In function ‘handshake_state_unref’:
src/handshake.c:151:17: error: implicit declaration of function ‘explicit_bzero’ [-Wimplicit-function-declaration]
151 | explicit_bzero(s->passphrase, strlen(s->passphrase));
| ^~~~~~~~~~~~~~
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/handshake.c b/src/handshake.c
@@ -24,6 +24,7 @@
#include <config.h>
#endif
+#define _GNU_SOURCE
#include <string.h>
#include <unistd.h>
#include <errno.h>