]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
refclock: fix build on non-Linux systems
authorBryan Christianson <bryan@whatroute.net>
Tue, 10 Dec 2024 09:14:43 +0000 (10:14 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 10 Dec 2024 09:14:43 +0000 (10:14 +0100)
Fixes: 5fd71e27831f ("refclock: add new refclock for RTCs")
refclock_rtc.c

index 2e0c09166bd0fb092d3f4585271b003854dd9c7f..2fcde948276bb258817a2142916355e68f374ac6 100644 (file)
 
   */
 
-#include <linux/rtc.h>
-
 #include "config.h"
 
-#include "conf.h"
 #include "refclock.h"
+
+#ifdef FEAT_RTC
+
+#include <linux/rtc.h>
+
+#include "conf.h"
 #include "local.h"
 
 #include "logging.h"
@@ -40,8 +43,6 @@
 #include "util.h"
 #include "rtc_linux.h"
 
-#ifdef FEAT_RTC
-
 struct refrtc_instance {
   int fd;
   int polling;