From 878c4ffc7e6837e63d308f18348a52584f323f4c Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Mon, 5 Aug 2019 23:44:14 +0000 Subject: user/sntpd: New package Signed-off-by: Samuel Holland --- user/sntpd/select.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 user/sntpd/select.patch (limited to 'user/sntpd/select.patch') diff --git a/user/sntpd/select.patch b/user/sntpd/select.patch new file mode 100644 index 000000000..00121d80b --- /dev/null +++ b/user/sntpd/select.patch @@ -0,0 +1,12 @@ +select(3) does not modify its timeout in musl, as permitted by POSIX +--- sntpd-7e372536855687f0af3c7ddde5fcb965b93d5d1e/src/sntpd.c ++++ sntpd-7e372536855687f0af3c7ddde5fcb965b93d5d1e/src/sntpd.c +@@ -686,7 +686,7 @@ static void primary_loop(int usd, struct ntp_control *ntpc) + ERR(errno, "Failed select()"); + continue; + } +- if (to.tv_sec == 0) { ++ if (1) { + if (probes_sent >= ntpc->probe_count && ntpc->probe_count != 0) + break; + -- cgit v1.2.3-70-g09d2