From b2548ec58f44f4b651626757a166b9f4f18d8000 Mon Sep 17 00:00:00 2001 From: WB2OSZ Date: Tue, 23 Aug 2016 19:13:59 -0400 Subject: [PATCH] Issue 52. Failed to compile with gcc 6.1. --- dwgpsd.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/dwgpsd.c b/dwgpsd.c index 900f26e..3138800 100644 --- a/dwgpsd.c +++ b/dwgpsd.c @@ -51,6 +51,7 @@ #endif #if ENABLE_GPSD + #include // Debian bug report: direwolf (1.2-1) FTBFS with libgps22 as part of the gpsd transition (#803605): @@ -60,7 +61,13 @@ #error libgps API version might be incompatible. #endif -#endif +/* + * Information for interface to gpsd daemon. + */ + +static struct gps_data_t gpsdata; + +#endif /* ENABLE_GPSD */ #include "textcolor.h" @@ -75,11 +82,7 @@ static int s_debug = 0; /* Enable debug output. */ static void * read_gpsd_thread (void *arg); -/* - * Information for interface to gpsd daemon. - */ -static struct gps_data_t gpsdata; /*------------------------------------------------------------------- @@ -138,7 +141,7 @@ static struct gps_data_t gpsdata; * * Update: January 2016. * - * I'm told that it might work in Raspian, Jessie version. + * I'm told that the shared memory interface might work in Raspian, Jessie version. * Haven't tried it yet. */