mirror of git://sourceware.org/git/glibc.git
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:
parent
0f8c3c4329
commit
6e3e14fd4c
|
|
@ -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*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue