summaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorCollin Funk <collin.funk1@gmail.com>2025-09-28 15:26:55 -0700
committerCollin Funk <collin.funk1@gmail.com>2025-09-29 17:01:54 -0700
commitae77ce91c8c0e928e0722218d7f30c2ab073cdc4 (patch)
tree1edab2ac729d16ae51e799810f620ba586bd1eee /manual
parent8df2a7811e5adce61e9329e8107cb6b430f2fcc5 (diff)
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 <adhemerval.zanella@linaro.org>
Diffstat (limited to 'manual')
-rw-r--r--manual/examples/select.c1
1 files changed, 1 insertions, 0 deletions
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 <errno.h>
#include <stdio.h>
#include <unistd.h>