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>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
-#include <sys/time.h>
+#include <sys/select.h>
/*@end group*/
/*@group*/