summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
authorJon Schlueter <jschlueter@navigationsolutions.com>2015-02-18 08:49:21 -0500
committerJon Schlueter <jschlueter@navigationsolutions.com>2015-02-18 08:49:21 -0500
commit78bbe312a905c1c3f6cf86c11687a47b6f11539b (patch)
tree9d7b7e1fcb9d9900730dbfcd71bebff2316204d1 /libgpsd_core.c
parent7d4e48453d3241954a0691acfdc5b73a7a4466ae (diff)
downloadgpsd-78bbe312a905c1c3f6cf86c11687a47b6f11539b.tar.gz
Fixing broken build scons minimal=on ntpshm=on
missing ifdef guards around pps_thread_stash_fixtime()
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r--libgpsd_core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c
index 848046b8..f9eec664 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -1677,10 +1677,12 @@ void ntpshm_latch(struct gps_device_t *device, struct timedrift_t /*@out@*/*td)
td->real.tv_nsec = (long)(fractional * 1e+9);
/*@+type@*/
+#ifdef PPS_ENABLE
/* thread-safe update */
/*@-compdef@*/
pps_thread_stash_fixtime(device, device->newdata.time, td->clock);
/*@+compdef@*/
+#endif /* PPS_ENABLE */
}
#endif /* NTPSHM_ENABLE */