summaryrefslogtreecommitdiff
path: root/libgps.h
diff options
context:
space:
mode:
authorMatt <ukyg9e5r6k7gubiekd6@yahoo.com>2014-09-28 03:37:05 +1000
committerEric S. Raymond <esr@thyrsus.com>2014-09-27 22:43:13 -0400
commit65000a4058788fff214fc4e37cae34f268d182f7 (patch)
tree729dbea9da4b59bdf3afc8c6c36712a2cf1fbbad /libgps.h
parentf25e639af0a40415aa28aa892b7c8e9f022aad46 (diff)
downloadgpsd-65000a4058788fff214fc4e37cae34f268d182f7.tar.gz
Add scons check for gmtime
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The recent addition of a prototype for gmtime in gpsd.h breaks the cygwin compile. Cygwin has gmtime, so the declarations conflict. Handle this by adding an scons check for gmtime, and make declaration of the bundled version conditional on absence of the system-supplied version. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUJvXAAAoJECH/phKUbjXCdgwH/RrMznXe51HHR5eLD3Y/vor8 h514XtvlzB/ghWQcAuiWX8mGy/J7k8OJFb8HmUXPAhSuzeiRooZXLz7uk3UvfeGv 4p5MfND3E7FCZVBu9/o9n5gf27wddXKChHVfAZ1MsnusRmwfjAiPoTr0iVoarWLw s/8tjvnHJg4A3i08nu4Y+Z9rwyDqkmB2YPQ0Zs+deCsbK4AA4Lx3oVkgDkVCk7zz vBZPueS6ylAMb1hbEthW3l7St3S2ESLG7nIxwv1lQ0mmAi70pknHeLYbiBLU0QqT A2ZsOOajespqq9/pmxP6ZJcwy8DtNXcj8LvRcNAOrjiV52MQUwTZGLLwVP5WMxk= =PoQy -----END PGP SIGNATURE-----
Diffstat (limited to 'libgps.h')
-rw-r--r--libgps.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/libgps.h b/libgps.h
index 34c4a9d5..00aeaa08 100644
--- a/libgps.h
+++ b/libgps.h
@@ -6,6 +6,8 @@
#ifndef _GPSD_LIBGPS_H_
#define _GPSD_LIBGPS_H_
+#include "gpsd_config.h"
+
/* values to poke in the gps_fd member if we get it via something special */
#define SHM_PSEUDO_FD -1
#define DBUS_PSEUDO_FD -2
@@ -36,9 +38,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 */
+#ifndef HAVE_GMTIME
+/* in case target doesn't have gmtime */
extern time_t gmtime(register struct tm *);
-#endif
+#endif /* ndef HAVE_GMTIME */
#endif /* _GPSD_LIBGPS_H_ */