summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Schlueter <jschlueter@navigationsolutions.com>2015-02-18 15:38:53 -0500
committerJon Schlueter <jschlueter@navigationsolutions.com>2015-02-18 15:42:02 -0500
commitccb781e8e3a288727f28dc8ddd05b389a0d0a2e7 (patch)
treeeadd6db21de2324c1ddd4012c1d3f8a113ee285d
parent43f7f1920eb32c59ba60cd4079e56c39b406fdba (diff)
downloadgpsd-ccb781e8e3a288727f28dc8ddd05b389a0d0a2e7.tar.gz
Fixing gpsmon.c to fix broken build
scons minimal=on control_socket=on ncurses=on pps=on Fails with json_pps_read not defined for gpsmon We were missing matching guard in gpsmon for json_pps_read
-rw-r--r--gpsmon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsmon.c b/gpsmon.c
index 63ea02c0..a6d801c6 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -664,7 +664,7 @@ static void gpsmon_hook(struct gps_device_t *device, gps_mask_t changed UNUSED)
struct timedrift_t td;
#endif /* NTPSHM_ENABLE */
-#if defined(PPS_ENABLE) && defined(CONTROL_SOCKET_ENABLE)
+#if defined(SOCKET_EXPORT_ENABLE) && defined(PPS_ENABLE) && defined(CONTROL_SOCKET_ENABLE)
if (!serial && str_starts_with((char*)device->lexer.outbuffer, "{\"class\":\"PPS\","))
{
const char *end = NULL;