summaryrefslogtreecommitdiff
path: root/user/sntpd/select.patch
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2020-08-28 01:15:41 +0000
committerSamuel Holland <samuel@sholland.org>2020-09-17 22:23:57 -0500
commit9f0282c5f0deb5b5bc295bce8ff7b413193327b9 (patch)
tree6322d401490397ecae5fe4cdd9622c6a98322604 /user/sntpd/select.patch
parenta7f03fc523db2f305ffd73220b12fb5a6bd2b3b6 (diff)
downloadpackages-9f0282c5f0deb5b5bc295bce8ff7b413193327b9.tar.gz
packages-9f0282c5f0deb5b5bc295bce8ff7b413193327b9.tar.bz2
packages-9f0282c5f0deb5b5bc295bce8ff7b413193327b9.tar.xz
packages-9f0282c5f0deb5b5bc295bce8ff7b413193327b9.zip
user/sntpd: Update to 3.0
Diffstat (limited to 'user/sntpd/select.patch')
-rw-r--r--user/sntpd/select.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/user/sntpd/select.patch b/user/sntpd/select.patch
index 00121d80b..f0e25055a 100644
--- a/user/sntpd/select.patch
+++ b/user/sntpd/select.patch
@@ -1,10 +1,10 @@
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()");
+--- sntpd-3.0/src/sntpd.c
++++ sntpd-3.0/src/sntpd.c
+@@ -663,7 +663,7 @@ static void loop(struct ntp_control *ntpc)
continue;
}
+
- if (to.tv_sec == 0) {
+ if (1) {
if (probes_sent >= ntpc->probe_count && ntpc->probe_count != 0)