diff options
author | Simon Dawson <spdawson@gmail.com> | 2014-09-03 18:43:31 +0100 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2014-09-04 15:02:17 -0400 |
commit | 48caee55069bdb7f7115e1930ace3914f4ddfe3b (patch) | |
tree | e5196e28960b0d754572b0a49c8879ccb197bf9f /gpsmon.c | |
parent | e4daf4676179ec729762f7a21c352c35d2293af6 (diff) | |
download | gpsd-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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@*/ |