From: Collin Funk Date: Sun, 28 Sep 2025 22:05:40 +0000 (-0700) Subject: manual: Fix missing declaration in twalk example. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2a773992df172cf68d991224edfdc677abc69ad;p=thirdparty%2Fglibc.git manual: Fix missing declaration in twalk example. 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 --- 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