diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-08-24 19:37:38 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-08-24 19:37:38 -0400 |
commit | b7fd54fa51f69f07b3bf255a4958a0a5b91b0bd9 (patch) | |
tree | b8b7efdcff1977b42832f04bd38d3ce67142b0b4 /ais_json.c | |
parent | 1a055217df5e641a9094da89c2e0156bcbe62054 (diff) | |
download | gpsd-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.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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, |