From 043b1e5d997d9b582a5aee37bd56e2e4f29be6e4 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 6 Sep 2009 12:47:55 +0200 Subject: more C standard compat fixes from Dan Fandrich function old new delta docolon 207 204 -3 Signed-off-by: Denys Vlasenko --- util-linux/hwclock.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'util-linux/hwclock.c') diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c index 2cdb186c5..6dff57f09 100644 --- a/util-linux/hwclock.c +++ b/util-linux/hwclock.c @@ -7,8 +7,9 @@ * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */ -#include #include "libbb.h" +/* After libbb.h, since it needs sys/types.h on some systems */ +#include #include "rtc_.h" #if ENABLE_FEATURE_HWCLOCK_LONG_OPTIONS @@ -67,7 +68,10 @@ static void show_clock(int utc) static void to_sys_clock(int utc) { struct timeval tv; - const struct timezone tz = { timezone/60 - 60*daylight, 0 }; + struct timezone tz; + + tz.tz_minuteswest = timezone/60 - 60*daylight; + tz.tz_dsttime = 0; tv.tv_sec = read_rtc(utc); tv.tv_usec = 0; -- cgit v1.2.3