summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-connectivity/mosquitto/files/3238.patch
blob: 89795f4cd9be6d82b99d6ee8f0854506bf204257 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 2cb8129793b54de7c68efe1a4a8e91c788077a8e Mon Sep 17 00:00:00 2001
From: "Roger A. Light" <roger@atchoo.org>
Date: Thu, 1 May 2025 11:58:23 +0100
Subject: [PATCH] Fix incorrect reference clock being selected on startup on
 Linux.

Closes #3238. Thanks to Eric Guin and karlri.
Closes #3168.
---
Upstream-Status: Backport 2.0.22
 src/mosquitto.c | 1 +
 2 files changed, 3 insertions(+)

diff --git a/src/mosquitto.c b/src/mosquitto.c
index ff83ef3da..2aea55237 100644
--- a/src/mosquitto.c
+++ b/src/mosquitto.c
@@ -465,6 +465,7 @@ int main(int argc, char *argv[])
 #endif
 	struct mosquitto *ctxt, *ctxt_tmp;
 
+	mosquitto_time_init();
 #if defined(WIN32) || defined(__CYGWIN__)
 	if(argc == 2){
 		if(!strcmp(argv[1], "run")){