From 12ee4bf6ac59cda93cc4f27563c82791269f26f2 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Wed, 9 Dec 2015 18:15:46 +0100 Subject: [PATCH] sys_timex: add support for ntp_adjtime() via privops --- sys_timex.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys_timex.c b/sys_timex.c index 60018f15..7abb629e 100644 --- a/sys_timex.c +++ b/sys_timex.c @@ -30,10 +30,15 @@ #include "sysincl.h" #include "conf.h" +#include "privops.h" #include "sys_generic.h" #include "sys_timex.h" #include "logging.h" +#ifdef PRIVOPS_ADJUSTTIMEX +#define NTP_ADJTIME PRV_AdjustTimex +#define NTP_ADJTIME_NAME "ntp_adjtime" +#else #ifdef LINUX #define NTP_ADJTIME adjtimex #define NTP_ADJTIME_NAME "adjtimex" @@ -41,6 +46,7 @@ #define NTP_ADJTIME ntp_adjtime #define NTP_ADJTIME_NAME "ntp_adjtime" #endif +#endif /* Maximum frequency offset accepted by the kernel (in ppm) */ #define MAX_FREQ 500.0 -- 2.47.2