From: Collin Funk Date: Sun, 28 Sep 2025 22:26:55 +0000 (-0700) Subject: manual: Fix missing declaration in select example. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ae77ce91c8c0e928e0722218d7f30c2ab073cdc4;p=thirdparty%2Fglibc.git manual: Fix missing declaration in select example. Without _GNU_SOURCE defined this file fails to compile with the following error: $ gcc manual/examples/select.c manual/examples/select.c: In function ‘input_timeout’: manual/examples/select.c:44:10: error: implicit declaration of function ‘TEMP_FAILURE_RETRY’ [-Wimplicit-function-declaration] 44 | return TEMP_FAILURE_RETRY (select (FD_SETSIZE, | ^~~~~~~~~~~~~~~~~~ Reviewed-by: Adhemerval Zanella --- diff --git a/manual/examples/select.c b/manual/examples/select.c index 341b65f11d..db138c3ecd 100644 --- a/manual/examples/select.c +++ b/manual/examples/select.c @@ -16,6 +16,7 @@ */ /*@group*/ +#define _GNU_SOURCE 1 #include #include #include