refclock: fix build on non-Linux systems

Fixes: 5fd71e27831f ("refclock: add new refclock for RTCs")
This commit is contained in:
Bryan Christianson
2024-12-10 10:14:43 +01:00
committed by Miroslav Lichvar
parent 4f22883f4e
commit a90a7cf51c

View File

@@ -26,12 +26,15 @@
*/ */
#include <linux/rtc.h>
#include "config.h" #include "config.h"
#include "conf.h"
#include "refclock.h" #include "refclock.h"
#ifdef FEAT_RTC
#include <linux/rtc.h>
#include "conf.h"
#include "local.h" #include "local.h"
#include "logging.h" #include "logging.h"
@@ -40,8 +43,6 @@
#include "util.h" #include "util.h"
#include "rtc_linux.h" #include "rtc_linux.h"
#ifdef FEAT_RTC
struct refrtc_instance { struct refrtc_instance {
int fd; int fd;
int polling; int polling;