From ccb781e8e3a288727f28dc8ddd05b389a0d0a2e7 Mon Sep 17 00:00:00 2001 From: Jon Schlueter Date: Wed, 18 Feb 2015 15:38:53 -0500 Subject: 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 --- gpsmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.1