diff options
author | Jon Schlueter <jschlueter@navigationsolutions.com> | 2015-02-24 09:14:22 -0500 |
---|---|---|
committer | Jon Schlueter <jschlueter@navigationsolutions.com> | 2015-02-24 09:17:24 -0500 |
commit | 5ff956c29bc28f3214c6d4231fb861f11cc1c5f3 (patch) | |
tree | 7cc2881b650f550e6ba214f5bd7d6187870753ae /libgpsd_core.c | |
parent | 1089bbcb7491f0cba7163bffb01d4eb74bf6bd56 (diff) | |
download | gpsd-5ff956c29bc28f3214c6d4231fb861f11cc1c5f3.tar.gz |
fix broken build scons minimal=on ntp=on in libgpsd_core
Missing ifdef guard TIMEHINT around usage of time_offset in
libgpsd_core.c
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r-- | libgpsd_core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c index 6ab09bc5..210aa596 100644 --- a/libgpsd_core.c +++ b/libgpsd_core.c @@ -1666,12 +1666,15 @@ void ntp_latch(struct gps_device_t *device, struct timedelta_t /*@out@*/*td) TVTOTS(&td->clock, &clock_tv); #endif /* HAVE_CLOCK_GETTIME */ fix_time = device->newdata.time; + +#ifdef TIMEHINT_ENABLE /* assume zero when there's no offset method */ if (device->device_type == NULL || device->device_type->time_offset == NULL) fix_time += 0.0; else fix_time += device->device_type->time_offset(device); +#endif /* TIMEHINT_ENABLE */ /* it's ugly but timestamp_t is double */ /* note loss of precision here * td->clock is in nanoSec |