mirror of
https://gitlab.com/chrony/chrony.git
synced 2026-03-11 00:59:38 -04:00
privops: switch from settimeofday() to clock_settime()
Following the removal of gettimeofday() calls, change PRV_SetTime() to use clock_settime() instead of settimeofday(). Only CLOCK_REALTIME is supported for now.
This commit is contained in:
@@ -41,9 +41,9 @@ int PRV_AdjustTimex(struct timex *txc);
|
||||
#endif
|
||||
|
||||
#ifdef PRIVOPS_SETTIME
|
||||
int PRV_SetTime(const struct timeval *tp, const struct timezone *tzp);
|
||||
int PRV_SetTime(clockid_t clockid, const struct timespec *tp);
|
||||
#else
|
||||
#define PRV_SetTime settimeofday
|
||||
#define PRV_SetTime clock_settime
|
||||
#endif
|
||||
|
||||
#ifdef PRIVOPS_BINDSOCKET
|
||||
|
||||
Reference in New Issue
Block a user