summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorJon Schlueter <jschlueter@navigationsolutions.com>2015-01-23 08:09:02 -0500
committerJon Schlueter <jschlueter@navigationsolutions.com>2015-01-23 08:37:43 -0500
commit33ef7b5682dc27b902ed0eaf08d8a098ecf07073 (patch)
tree3cafaf9c7bdb196a7debbba0219bfd3c22205df1 /gpsd.c
parente5f1d945ebc560f7bfb60f120c7747b10a365332 (diff)
downloadgpsd-33ef7b5682dc27b902ed0eaf08d8a098ecf07073.tar.gz
Fixing broken build for scons control_socket=on pps=on
guard for using ship_pps_drift_message didn't match it's declaration
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsd.c b/gpsd.c
index 40a3952d..d667e8e5 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1868,9 +1868,9 @@ int main(int argc, char *argv[])
#ifdef CONTROL_SOCKET_ENABLE
INVALIDATE_SOCKET(csock);
-#ifdef PPS_ENABLE
+#if defined(PPS_ENABLE) && defined(SOCKET_EXPORT_ENABLE)
context.pps_hook = ship_pps_drift_message;
-#endif /* PPS_ENABLE */
+#endif /* PPS_ENABLE && SOCKET_EXPORT_ENABLE */
#endif /* CONTROL_SOCKET_ENABLE */
while ((option = getopt(argc, argv, "F:D:S:bGhlNnP:V")) != -1) {