From 251e08ffa626d4b7c7e5f626aee7067b86b2ceba Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 17 Dec 2020 20:53:43 +0100 Subject: move ADJTIME_PATH define to header files Signed-off-by: Denys Vlasenko --- include/rtc_.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/rtc_.h') diff --git a/include/rtc_.h b/include/rtc_.h index 750fc20ec..24ff5363f 100644 --- a/include/rtc_.h +++ b/include/rtc_.h @@ -11,6 +11,12 @@ PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN +#if ENABLE_FEATURE_HWCLOCK_ADJTIME_FHS +# define ADJTIME_PATH "/var/lib/hwclock/adjtime" +#else +# define ADJTIME_PATH "/etc/adjtime" +#endif + int rtc_adjtime_is_utc(void) FAST_FUNC; int rtc_xopen(const char **default_rtc, int flags) FAST_FUNC; void rtc_read_tm(struct tm *ptm, int fd) FAST_FUNC; -- cgit v1.2.3