diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-01-25 19:22:32 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-01-25 19:22:32 -0500 |
commit | 460a419d16d38e2a56fb7f4596a5086711ed463b (patch) | |
tree | 98fcfc00a75e22347f0e49e87dd355fe636a6ec8 /gpsmon.c | |
parent | 22182caa8965cfef9de154c984eafdea62a6489f (diff) | |
download | gpsd-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.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -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; } |