summaryrefslogtreecommitdiff
path: root/gpsmon.c
diff options
context:
space:
mode:
authorSimon Dawson <spdawson@gmail.com>2014-09-03 18:43:31 +0100
committerEric S. Raymond <esr@thyrsus.com>2014-09-04 15:02:17 -0400
commit48caee55069bdb7f7115e1930ace3914f4ddfe3b (patch)
treee5196e28960b0d754572b0a49c8879ccb197bf9f /gpsmon.c
parente4daf4676179ec729762f7a21c352c35d2293af6 (diff)
downloadgpsd-48caee55069bdb7f7115e1930ace3914f4ddfe3b.tar.gz
Complete wrapping of ntpshm_latch function in #ifdef NTPSHM_ENABLE
Currently, the build fails as follows gpsmon.o: In function `gpsmon_hook': gpsmon.c:(.text+0x8b0): undefined reference to `ntpshm_latch' collect2: error: ld returned 1 exit status scons: *** [gpsmon] Error 1 Addresses Sacannah bug #43129: ntpshm patch is incomplete. Signed-off-by: Simon Dawson <spdawson@gmail.com>
Diffstat (limited to 'gpsmon.c')
-rw-r--r--gpsmon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpsmon.c b/gpsmon.c
index c812063b..909f2712 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -734,8 +734,10 @@ static void gpsmon_hook(struct gps_device_t *device, gps_mask_t changed UNUSED)
report_unlock();
+#ifdef NTPSHM_ENABLE
/* Update the last fix time seen for PPS. */
ntpshm_latch(device, &td);
+#endif /* NTPSHM_ENABLE */
}
/*@+observertrans +nullpass +globstate +compdef +uniondef@*/