From a2a773992df172cf68d991224edfdc677abc69ad Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Sun, 28 Sep 2025 15:05:40 -0700 Subject: [PATCH] manual: Fix missing declaration in twalk example. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Without _GNU_SOURCE defined this file fails to compile with the following error: $ gcc manual/examples/twalk.c manual/examples/twalk.c: In function ‘twalk’: manual/examples/twalk.c:55:3: error: implicit declaration of function ‘twalk_r’; did you mean ‘twalk’? [-Wimplicit-function-declaration] 55 | twalk_r (root, twalk_with_twalk_r_action, &closure); | ^~~~~~~ | twalk Reviewed-by: Adhemerval Zanella --- manual/examples/twalk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/manual/examples/twalk.c b/manual/examples/twalk.c index e9aa13dc75..970096d036 100644 --- a/manual/examples/twalk.c +++ b/manual/examples/twalk.c @@ -15,6 +15,7 @@ along with this program; if not, see . */ +#define _GNU_SOURCE 1 #include struct twalk_with_twalk_r_closure -- 2.47.3