Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4:FactoryCandidates
ocli
0001-FIX-adapted-for-gpsd-3.23.1.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-FIX-adapted-for-gpsd-3.23.1.patch of Package ocli
From 52dcf57f14c771c3d90c82ada688de7767e06ba6 Mon Sep 17 00:00:00 2001 From: Tuukka Pasanen <tuukka.pasanen@ilmi.fi> Date: Thu, 14 Oct 2021 11:27:05 +0300 Subject: [PATCH] [FIX] adapted for gpsd >= 3.23.1 As ifdef to make this compile wiht gpsd 3.23.1 by changind status defines * Change STATUS_NO_FIX to STATUS_UNK to avoid confusion with fix mode. * Change STATUS_FIX to STATUS_GPS to avoid confusion with fix mode. * Change STATUS_DGPS_FIX to STATUS_DGPS to avoid confusion with fix mode. --- owntracks-cli-publisher.c | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/owntracks-cli-publisher.c b/owntracks-cli-publisher.c index 7c60d40..e695f8f 100644 --- a/owntracks-cli-publisher.c +++ b/owntracks-cli-publisher.c @@ -399,9 +399,17 @@ static void conditionally_log_fix(struct udata *ud, struct gps_data_t *gpsdata) #else switch (gpsdata->status) { #endif - case STATUS_FIX: +#ifdef STATUS_FIX + case STATUS_FIX: +#endif +#ifdef STATUS_GPS + case STATUS_GPS: +#endif #ifdef STATUS_DGPS_FIX - case STATUS_DGPS_FIX: + case STATUS_DGPS_FIX: +#endif +#ifdef STATUS_DGPS + case STATUS_DGPS: #endif switch (gpsdata->fix.mode) { case MODE_2D: @@ -436,7 +444,12 @@ static void conditionally_log_fix(struct udata *ud, struct gps_data_t *gpsdata) } break; - case STATUS_NO_FIX: +#ifdef STATUS_NO_FIX + case STATUS_NO_FIX: +#endif +#ifdef STATUS_UNK + case STATUS_UNK: +#endif if (ud->verbose) { fprintf(stderr, ".. no fix\n"); } -- 2.33.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor