summaryrefslogtreecommitdiff
path: root/libgps.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2014-09-25 17:09:09 -0400
committerEric S. Raymond <esr@thyrsus.com>2014-09-25 17:14:15 -0400
commitd4fd3d2ed32e1cadaa1ab05ff87aad0c0817d942 (patch)
tree4150f42864d5bababb84207206b8f30d538a725e /libgps.h
parentc1ba7516b8dcb00c658d2630c2a8be9f4355e618 (diff)
downloadgpsd-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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libgps.h b/libgps.h
index f7731885..34c4a9d5 100644
--- a/libgps.h
+++ b/libgps.h
@@ -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_ */