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>
This commit is contained in:
Collin Funk 2025-09-28 15:26:55 -07:00
parent 8df2a7811e
commit ae77ce91c8
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@
*/
/*@group*/
#define _GNU_SOURCE 1
#include <errno.h>
#include <stdio.h>
#include <unistd.h>