summaryrefslogtreecommitdiff
path: root/user/sntpd/select.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/sntpd/select.patch')
-rw-r--r--user/sntpd/select.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/user/sntpd/select.patch b/user/sntpd/select.patch
new file mode 100644
index 000000000..f0e25055a
--- /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-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)
+ break;
+