aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCollin Funk <collin.funk1@gmail.com>2025-07-24 17:44:10 -0700
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2025-08-04 11:16:23 -0300
commit6e3e14fd4c9e3692a62cfc2fa65286d7c835c985 (patch)
tree554a4b9a121207a88063ab4e749ec87bb67f4cfa
parent0f8c3c4329cf08aced4b0c074bf33f74cbd0f564 (diff)
downloadglibc-6e3e14fd4c9e3692a62cfc2fa65286d7c835c985.zip
glibc-6e3e14fd4c9e3692a62cfc2fa65286d7c835c985.tar.gz
glibc-6e3e14fd4c9e3692a62cfc2fa65286d7c835c985.tar.bz2
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>
-rw-r--r--manual/examples/select.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/manual/examples/select.c b/manual/examples/select.c
index 1398c7f..341b65f 100644
--- a/manual/examples/select.c
+++ b/manual/examples/select.c
@@ -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*/