]> git.ipfire.org Git - thirdparty/glibc.git/commit
manual: Use sys/select.h instead of sys/time.h for select example.
authorCollin Funk <collin.funk1@gmail.com>
Fri, 25 Jul 2025 00:44:10 +0000 (17:44 -0700)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 4 Aug 2025 14:16:23 +0000 (11:16 -0300)
commit6e3e14fd4c9e3692a62cfc2fa65286d7c835c985
tree554a4b9a121207a88063ab4e749ec87bb67f4cfa
parent0f8c3c4329cf08aced4b0c074bf33f74cbd0f564
manual: Use sys/select.h instead of sys/time.h for select example.

The original example works on glibc since sys/time.h includes
sys/select.h. However, since POSIX requires that select is defined in
sys/select.h this change makes the example more portable.

Reported by Gavin Smith <gavinsmith0123@gmail.com> in:
<https://lists.gnu.org/archive/html/bug-texinfo/2025-07/msg00091.html>.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
manual/examples/select.c