diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-11-12 13:29:42 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-11-12 13:29:42 -0500 |
commit | 9b14a8cd3a90e005c6f5f0708119ad839243d812 (patch) | |
tree | aab33f89d813b41ac885ccfdec8a57bd4f34331e /monitor_ubx.c | |
parent | 663a717e9f50795795f546f77d83db014135fa52 (diff) | |
download | gpsd-9b14a8cd3a90e005c6f5f0708119ad839243d812.tar.gz |
Fix pps=no build.
Diffstat (limited to 'monitor_ubx.c')
-rw-r--r-- | monitor_ubx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/monitor_ubx.c b/monitor_ubx.c index 827a7c0e..b6d4443b 100644 --- a/monitor_ubx.c +++ b/monitor_ubx.c @@ -229,7 +229,9 @@ static void ubx_update(void) unsigned char *buf; size_t data_len; unsigned short msgid; +#ifdef PPS_ENABLE struct timedrift_t drift; +#endif /* PPS_ENABLE */ buf = session.packet.outbuffer; msgid = (unsigned short)((buf[2] << 8) | buf[3]); @@ -248,6 +250,7 @@ static void ubx_update(void) break; } +#ifdef PPS_ENABLE if (pps_thread_lastpps(&session, &drift) > 0) { /*@-type@*/ /* splint is confused about struct timespec */ double timedelta = timespec_diff_ns(drift.real, drift.clock) * 1e-9; @@ -255,6 +258,7 @@ static void ubx_update(void) (void)mvwprintw(ppswin, 1, 13, "%.9f", timedelta); wnoutrefresh(ppswin); } +#endif /* PPS_ENABLE */ } static int ubx_command(char line[]UNUSED) |