commit 30049f582237bb21a64a7e9e4c427b7309b202a9
parent b1bcc47ffeeed0c689170dffa9089712ad222f17
Author: Marcel Holtmann <marcel@holtmann.org>
Date: Tue, 10 Feb 2026 09:17:29 +0100
fils: Fix build issue with missing _GNU_SOURCE
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));
| ^~~~~~~~~~~~~~
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/fils.c b/src/fils.c
@@ -25,6 +25,8 @@
#include <config.h>
#endif
+#define _GNU_SOURCE
+#include <stdlib.h>
#include <ell/ell.h>
#include "ell/useful.h"