]> git.ipfire.org Git - thirdparty/glibc.git/commit
manual: Fix missing declaration in select example.
authorCollin Funk <collin.funk1@gmail.com>
Sun, 28 Sep 2025 22:26:55 +0000 (15:26 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Tue, 30 Sep 2025 00:01:54 +0000 (17:01 -0700)
commitae77ce91c8c0e928e0722218d7f30c2ab073cdc4
tree1edab2ac729d16ae51e799810f620ba586bd1eee
parent8df2a7811e5adce61e9329e8107cb6b430f2fcc5
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>
manual/examples/select.c