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>
This commit is contained in:
Collin Funk 2025-07-24 17:44:10 -07:00 committed by Adhemerval Zanella
parent 0f8c3c4329
commit 6e3e14fd4c
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/select.h>
/*@end group*/
/*@group*/