diff options
author | Jon Schlueter <jschlueter@navigationsolutions.com> | 2015-02-25 07:47:40 -0500 |
---|---|---|
committer | Jon Schlueter <jschlueter@navigationsolutions.com> | 2015-02-25 07:47:40 -0500 |
commit | 0c9c2bc7d9117443c2a7307734ccc4357e51a0c8 (patch) | |
tree | 3cd09953f17cffd68fb8e3c63107207306cfa483 /gpsmon.c | |
parent | 3c88096379eb6209bea197888c5fe6c88898355d (diff) | |
download | gpsd-0c9c2bc7d9117443c2a7307734ccc4357e51a0c8.tar.gz |
Fix broken build for time_offset in gpsmon
fix broken scons build with the following:
scons minimal=on ncurses=on pps=on socket_export=on
Missing NTP_ENABLE guard around usage of time_offset in gpsmon_hook()
Diffstat (limited to 'gpsmon.c')
-rw-r--r-- | gpsmon.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -744,7 +744,9 @@ static void gpsmon_hook(struct gps_device_t *device, gps_mask_t changed UNUSED) (long)session.gpsdata.toff.real.tv_sec, (long)session.gpsdata.toff.real.tv_nsec); /*@+type +noeffect@*/ +#ifdef NTP_ENABLE time_offset = session.gpsdata.toff; +#endif /* NTP_ENABLE */ return; } } else if (!serial && str_starts_with((char*)device->lexer.outbuffer, "{\"class\":\"PPS\",")) { |