summaryrefslogtreecommitdiff
path: root/gpsmon.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-01-25 19:22:32 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-01-25 19:22:32 -0500
commit460a419d16d38e2a56fb7f4596a5086711ed463b (patch)
tree98fcfc00a75e22347f0e49e87dd355fe636a6ec8 /gpsmon.c
parent22182caa8965cfef9de154c984eafdea62a6489f (diff)
downloadgpsd-460a419d16d38e2a56fb7f4596a5086711ed463b.tar.gz
More excision of unneeded configure tests.
This one was checking for a GNU-only alternative to a POSIX facility.
Diffstat (limited to 'gpsmon.c')
-rw-r--r--gpsmon.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/gpsmon.c b/gpsmon.c
index bc0c4a85..79c9a5c9 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -310,18 +310,9 @@ static long tzoffset(void)
long res = 0;
tzset();
-#ifdef HAVE_TIMEZONE
res = timezone;
-#else
- res = localtime_r(&now, &tm)->tm_gmtoff;
-#endif
-#ifdef HAVE_DAYLIGHT
- if (daylight != 0 && localtime_r(&now, &tm)->tm_isdst != 0)
- res -= 3600;
-#else
if (localtime_r(&now, &tm)->tm_isdst)
res -= 3600;
-#endif
return res;
}