summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-connectivity/mosquitto/files/3238.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-connectivity/mosquitto/files/3238.patch')
-rw-r--r--meta-networking/recipes-connectivity/mosquitto/files/3238.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/mosquitto/files/3238.patch b/meta-networking/recipes-connectivity/mosquitto/files/3238.patch
new file mode 100644
index 0000000000..89795f4cd9
--- /dev/null
+++ b/meta-networking/recipes-connectivity/mosquitto/files/3238.patch
@@ -0,0 +1,25 @@
1From 2cb8129793b54de7c68efe1a4a8e91c788077a8e Mon Sep 17 00:00:00 2001
2From: "Roger A. Light" <roger@atchoo.org>
3Date: Thu, 1 May 2025 11:58:23 +0100
4Subject: [PATCH] Fix incorrect reference clock being selected on startup on
5 Linux.
6
7Closes #3238. Thanks to Eric Guin and karlri.
8Closes #3168.
9---
10Upstream-Status: Backport 2.0.22
11 src/mosquitto.c | 1 +
12 2 files changed, 3 insertions(+)
13
14diff --git a/src/mosquitto.c b/src/mosquitto.c
15index ff83ef3da..2aea55237 100644
16--- a/src/mosquitto.c
17+++ b/src/mosquitto.c
18@@ -465,6 +465,7 @@ int main(int argc, char *argv[])
19 #endif
20 struct mosquitto *ctxt, *ctxt_tmp;
21
22+ mosquitto_time_init();
23 #if defined(WIN32) || defined(__CYGWIN__)
24 if(argc == 2){
25 if(!strcmp(argv[1], "run")){