From fc55e93829a4b5fd6b9e7cac27dcf71531f1239f Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 10 Feb 2026 16:38:59 +0100 Subject: [PATCH] eap-tls: Fix build issue with missing _GNU_SOURCE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CC src/eap-tls.o src/eap-tls.c: In function ‘eap_tls_tunnel_ready’: src/eap-tls.c:56:9: error: implicit declaration of function ‘explicit_bzero’ [-Wimplicit-function-declaration] 56 | explicit_bzero(msk_emsk, sizeof(msk_emsk)); | ^~~~~~~~~~~~~~ src/eap-tls.c: In function ‘eap_tls_check_keys_match’: src/eap-tls.c:82:21: error: implicit declaration of function ‘alloca’; did you mean ‘calloc’? [-Wimplicit-function-declaration] 82 | encrypted = alloca(size); | ^~~~~~ | calloc src/eap-tls.c:82:19: error: assignment to ‘uint8_t *’ {aka ‘unsigned char *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 82 | encrypted = alloca(size); | ^ src/eap-tls.c:83:19: error: assignment to ‘uint8_t *’ {aka ‘unsigned char *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 83 | decrypted = alloca(size); | ^ --- src/eap-tls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/eap-tls.c b/src/eap-tls.c index 56fdc67f..1cf94a5c 100644 --- a/src/eap-tls.c +++ b/src/eap-tls.c @@ -24,9 +24,11 @@ #include #endif +#define _GNU_SOURCE #include #include #include +#include #include #include "src/missing.h"