summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2023-05-25 07:56:19 +1000
committerKinseyMoore <48726349+KinseyMoore@users.noreply.github.com>2023-05-24 21:22:58 -0500
commitab31a3e661a9151e7e06ebc774481c68544dca9e (patch)
tree53c6b11097e31a44df3726f6b9b24c1e81d1f797
parenttests/ntpd: Enable debugger (diff)
downloadrtems-net-services-ab31a3e661a9151e7e06ebc774481c68544dca9e.tar.bz2
bsd/ntp: Copy all fds in an fd_set
-rw-r--r--bsd/freebsd/contrib/ntp/ntpd/ntp_io.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bsd/freebsd/contrib/ntp/ntpd/ntp_io.c b/bsd/freebsd/contrib/ntp/ntpd/ntp_io.c
index c24db18..737314c 100644
--- a/bsd/freebsd/contrib/ntp/ntpd/ntp_io.c
+++ b/bsd/freebsd/contrib/ntp/ntpd/ntp_io.c
@@ -3727,7 +3727,11 @@ io_handler(void)
* yet to learn about anything else that is.
*/
++handler_calls;
+#if __rtems__
+ memcpy(&rdfdes, &activefds, rtems_ntpd_fds_size);
+#else /* __rtems__ */
rdfdes = activefds;
+#endif /* __rtems__ */
# if !defined(VMS) && !defined(SYS_VXWORKS) && !defined(__rtems__)
nfound = select(maxactivefd + 1, &rdfdes, NULL,
NULL, NULL);