diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-09-28 07:21:21 +0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-09-28 07:21:21 +0400 |
commit | 747fc5d5fda30e7d4314d8abe80029f3792602d6 (patch) | |
tree | ecfb293f5feba4bcdb9a703b202ab7269ad69c8e /util-linux/hwclock.c | |
parent | 3978e5576e1675c2fac631fcba07a976405b5e4b (diff) |
allow people to adjtime location
Diffstat (limited to 'util-linux/hwclock.c')
-rw-r--r-- | util-linux/hwclock.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c index 11261f47d..45959e7a1 100644 --- a/util-linux/hwclock.c +++ b/util-linux/hwclock.c @@ -155,11 +155,15 @@ static int from_sys_clock(int utc) return 0; } - +#ifdef CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS +# define ADJTIME_PATH "/var/lib/hwclock/adjtime" +#else +# define ADJTIME_PATH "/etc/adjtime" +#endif static int check_utc(void) { int utc = 0; - FILE *f = fopen ( "/var/lib/hwclock/adjtime", "r" ); + FILE *f = fopen ( ADJTIME_PATH, "r" ); if ( f ) { char buffer [128]; |