diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-01-13 05:38:30 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-01-13 06:03:29 -0500 |
commit | 2f10b9bf538a60914558f87772a8072859449e73 (patch) | |
tree | 5f9f1e9689d557bebc44c0eec2673c3a7b73aecf /gpsutils.c | |
parent | 72d2c0b5922a63d94bc08772dba3ae62c59867ba (diff) | |
download | gpsd-2f10b9bf538a60914558f87772a8072859449e73.tar.gz |
Fix the build in some unusual cases. All regression tests pass.
Diffstat (limited to 'gpsutils.c')
-rw-r--r-- | gpsutils.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -352,6 +352,11 @@ timestamp_t iso8601_to_unix( /*@in@*/ char *isotime) usec = strtod(dp, NULL); else usec = 0; + + /* + * This could be "return (timestamp_t)timegm(&tm) + usec;" but + * that is glibc only. + */ return (timestamp_t)mktime(&tm) - timezone + usec; #else double usec = 0; |