summaryrefslogtreecommitdiff
path: root/ais_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 /ais_json.c
parent300dfc0a1c616fa9af4035c91c7260202f370dbf (diff)
downloadgpsd-48ea132d3330094a02ec3e4d72c8dc485f16b8df.tar.gz
Add a switch to configure out control-socket switch.
Diffstat (limited to 'ais_json.c')
-rw-r--r--ais_json.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ais_json.c b/ais_json.c
index cdd21e18..a9312d34 100644
--- a/ais_json.c
+++ b/ais_json.c
@@ -15,6 +15,7 @@ representations to libgps structures.
#include <stdlib.h>
#include "gpsd.h"
+#ifdef SOCKET_EXPORT_ENABLE
#include "gps_json.h"
/*@ -mustdefine @*/
@@ -148,5 +149,6 @@ int json_ais_read(const char *buf,
/*@+compdef +nullstate@*/
return status;
}
+#endif /* SOCKET_EXPORT_ENABLE */
/* ais_json.c ends here */