summaryrefslogtreecommitdiff
path: root/monitor_sirf.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-12 13:29:42 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-12 13:29:42 -0500
commit9b14a8cd3a90e005c6f5f0708119ad839243d812 (patch)
treeaab33f89d813b41ac885ccfdec8a57bd4f34331e /monitor_sirf.c
parent663a717e9f50795795f546f77d83db014135fa52 (diff)
downloadgpsd-9b14a8cd3a90e005c6f5f0708119ad839243d812.tar.gz
Fix pps=no build.
Diffstat (limited to 'monitor_sirf.c')
-rw-r--r--monitor_sirf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/monitor_sirf.c b/monitor_sirf.c
index 2d49fdc8..edf790b5 100644
--- a/monitor_sirf.c
+++ b/monitor_sirf.c
@@ -277,7 +277,9 @@ static void sirf_update(void)
size_t len;
uint8_t dgps;
char tbuf[JSON_DATE_MAX+1];
+#ifdef PPS_ENABLE
struct timedrift_t drift;
+#endif /* PPS_ENABLE */
/* splint pacification */
assert(mid2win!=NULL && mid27win != NULL);
@@ -581,6 +583,7 @@ static void sirf_update(void)
}
/*@ +nullpass -nullderef @*/
+#ifdef PPS_ENABLE
/* Not a CSD field, but there's no better place to put it */
if (pps_thread_lastpps(&session, &drift) > 0) {
/*@-type@*/ /* splint is confused about struct timespec */
@@ -589,6 +592,7 @@ static void sirf_update(void)
display(mid7win, 2, 39, "%.9f", timedelta); /* PPS offset */
wnoutrefresh(mid7win);
}
+#endif /* PPS_ENABLE */
}
/*@ +globstate */