diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2014-09-25 17:09:09 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2014-09-25 17:14:15 -0400 |
commit | d4fd3d2ed32e1cadaa1ab05ff87aad0c0817d942 (patch) | |
tree | 4150f42864d5bababb84207206b8f30d538a725e /libgps.h | |
parent | c1ba7516b8dcb00c658d2630c2a8be9f4355e618 (diff) | |
download | gpsd-d4fd3d2ed32e1cadaa1ab05ff87aad0c0817d942.tar.gz |
Do the right thing if we're not using glibc - use local timegm().
All regression tests pass.
Diffstat (limited to 'libgps.h')
-rw-r--r-- | libgps.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -36,4 +36,9 @@ extern int json_ais_read(const char *, char *, size_t, struct ais_t *, #define PRIVATE(gpsdata) ((struct privdata_t *)(gpsdata)->privdata) +#ifndef __GLIBC__ +/* in case target doesn't use glibc */ +extern time_t gmtime(register struct tm *); +#endif + #endif /* _GPSD_LIBGPS_H_ */ |