summaryrefslogtreecommitdiff
path: root/ais_json.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-08-24 19:37:38 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-08-24 19:37:38 -0400
commitb7fd54fa51f69f07b3bf255a4958a0a5b91b0bd9 (patch)
treeb8b7efdcff1977b42832f04bd38d3ce67142b0b4 /ais_json.c
parent1a055217df5e641a9094da89c2e0156bcbe62054 (diff)
downloadgpsd-b7fd54fa51f69f07b3bf255a4958a0a5b91b0bd9.tar.gz
ais_json.c no longer includes gpsd.h. May solve a FreeBSD port problem.
Diffstat (limited to 'ais_json.c')
-rw-r--r--ais_json.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/ais_json.c b/ais_json.c
index ab94273d..bb523c50 100644
--- a/ais_json.c
+++ b/ais_json.c
@@ -15,9 +15,15 @@ representations to libgps structures.
#include <stdlib.h>
#include <stddef.h>
-#include "gpsd.h"
+#include "gpsd_config.h"
+#include "gps.h"
+#include "json.h"
#ifdef SOCKET_EXPORT_ENABLE
-#include "gps_json.h"
+
+/* FIXME: kluges because we don't want to include gpsd.h here */
+extern int gpsd_hexpack(/*@in@*/const char *, /*@out@*/char *, size_t);
+int json_ais_read(const char *, char *, size_t, struct ais_t *,
+ /*@null@*/const char **);
/*@ -mustdefine @*/
static void lenhex_unpack(const char *from,