3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2026-02-11 15:17:57 +01:00

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));
      |                 ^~~~~~~~~~~~~~
This commit is contained in:
Marcel Holtmann 2026-02-10 09:08:48 +01:00
parent a5a67b5de4
commit 1cef23cd7b

View File

@ -24,6 +24,7 @@
#include <config.h>
#endif
#define _GNU_SOURCE
#include <string.h>
#include <unistd.h>
#include <errno.h>