From: Bryan Christianson Date: Tue, 10 Dec 2024 09:14:43 +0000 (+0100) Subject: refclock: fix build on non-Linux systems X-Git-Tag: 4.7-pre1~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a90a7cf51ce190959818f26ba1a1f0a68028c8c4;p=thirdparty%2Fchrony.git refclock: fix build on non-Linux systems Fixes: 5fd71e27831f ("refclock: add new refclock for RTCs") --- diff --git a/refclock_rtc.c b/refclock_rtc.c index 2e0c0916..2fcde948 100644 --- a/refclock_rtc.c +++ b/refclock_rtc.c @@ -26,12 +26,15 @@ */ -#include - #include "config.h" -#include "conf.h" #include "refclock.h" + +#ifdef FEAT_RTC + +#include + +#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;