summaryrefslogtreecommitdiff
path: root/rtcm2_json.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-03-28 22:37:01 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-03-28 22:37:01 -0400
commit48ea132d3330094a02ec3e4d72c8dc485f16b8df (patch)
treefb1a979dd90dfa9c2a52c71e24702e0c8bef603e /rtcm2_json.c
parent300dfc0a1c616fa9af4035c91c7260202f370dbf (diff)
downloadgpsd-48ea132d3330094a02ec3e4d72c8dc485f16b8df.tar.gz
Add a switch to configure out control-socket switch.
Diffstat (limited to 'rtcm2_json.c')
-rw-r--r--rtcm2_json.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/rtcm2_json.c b/rtcm2_json.c
index 549a59c4..59cefce4 100644
--- a/rtcm2_json.c
+++ b/rtcm2_json.c
@@ -19,6 +19,8 @@ PERMISSIONS
#include <stddef.h>
#include "gpsd.h"
+
+#ifdef SOCKET_EXPORT_ENABLE
#include "gps_json.h"
/* common fields in every RTCM2 message */
@@ -266,5 +268,6 @@ int json_rtcm2_read(const char *buf,
}
return status;
}
+#endif /* SOCKET_EXPORT_ENABLE */
/* rtcm2_json.c ends here */