From d54bf40320926703a61b6be8ec4a502382f1adfe Mon Sep 17 00:00:00 2001 From: lbartoletti Date: Thu, 5 Mar 2020 18:19:11 +0100 Subject: [PATCH] Update dwgpsd.c Fix build with gpsd 3.20 https://gitlab.com/gpsd/gpsd/-/blob/release-3.20/gps.h#L78 --- src/dwgpsd.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/dwgpsd.c b/src/dwgpsd.c index 890dd503..5d8b6acb 100644 --- a/src/dwgpsd.c +++ b/src/dwgpsd.c @@ -59,9 +59,9 @@ // dwgps.c claims to only support GPSD_API_MAJOR_VERSION 5, but also builds successfully with // GPSD_API_MAJOR_VERSION 6 provided by libgps22 when the attached patch is applied. -// Also compatible with API 7 & 8 with conditional compilation later. +// Also compatible with API 7, 8 and 9 with conditional compilation later. -#if GPSD_API_MAJOR_VERSION < 5 || GPSD_API_MAJOR_VERSION > 8 +#if GPSD_API_MAJOR_VERSION < 5 || GPSD_API_MAJOR_VERSION > 9 #error libgps API version might be incompatible. #endif @@ -423,7 +423,8 @@ int main (int argc, char *argv[]) while (1) { dwfix_t fix; - fix = dwgps_read (&info) ; + fix = dwgps_read (&info) +; text_color_set (DW_COLOR_INFO); switch (fix) { case DWFIX_2D: