From 30049f582237bb21a64a7e9e4c427b7309b202a9 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 10 Feb 2026 09:17:29 +0100 Subject: [PATCH] fils: Fix build issue with missing _GNU_SOURCE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CC src/fils.o src/fils.c: In function ‘fils_erp_tx_func’: src/fils.c:117:16: error: implicit declaration of function ‘alloca’; did you mean ‘calloc’? [-Wimplicit-function-declaration] 117 | rsne = alloca(256); | ^~~~~~ | calloc src/fils.c:117:14: error: assignment to ‘uint8_t *’ {aka ‘unsigned char *’} from ‘int’ makes pointer from integer without a cast -Wint-conversion] 117 | rsne = alloca(256); | ^ src/fils.c: In function ‘fils_derive_key_data’: src/fils.c:301:22: error: assignment to ‘uint8_t *’ {aka ‘unsigned char *’} from ‘int’ makes pointer from integer without a cast -Wint-conversion] 301 | rsne = alloca(256); | ^ src/fils.c: In function ‘fils_free’: src/fils.c:350:9: error: implicit declaration of function ‘explicit_bzero’ [-Wimplicit-function-declaration] 350 | explicit_bzero(fils->ick, sizeof(fils->ick)); | ^~~~~~~~~~~~~~ --- src/fils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fils.c b/src/fils.c index ff8c1d6c..69346ed1 100644 --- a/src/fils.c +++ b/src/fils.c @@ -25,6 +25,8 @@ #include #endif +#define _GNU_SOURCE +#include #include #include "ell/useful.h"