summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-Olivier Barre2020-08-18 19:18:02 +0200
committerMarc-Olivier Barre2020-08-18 19:18:02 +0200
commitb2840f7430a79803af93f24f39dbf9e95f9c5181 (patch)
tree2912475a075449f83493ac4a52519c65585fe329
parent45fb1c78bf054af9fc5114aa8b0a2835240fe9ee (diff)
downloadaur-b2840f7430a79803af93f24f39dbf9e95f9c5181.tar.gz
add patch to build with gpsd 3.21
-rw-r--r--gpsd-api-v10-fix.diff16
1 files changed, 16 insertions, 0 deletions
diff --git a/gpsd-api-v10-fix.diff b/gpsd-api-v10-fix.diff
new file mode 100644
index 000000000000..d136665d48c6
--- /dev/null
+++ b/gpsd-api-v10-fix.diff
@@ -0,0 +1,16 @@
+diff --git a/indi-gpsd/gps_driver.cpp b/indi-gpsd/gps_driver.cpp
+index 833c11bd..126825f2 100644
+--- a/indi-gpsd/gps_driver.cpp
++++ b/indi-gpsd/gps_driver.cpp
+@@ -249,7 +249,11 @@ IPState GPSD::updateGPS()
+ return IPS_ALERT;
+ }
+
++#if GPSD_API_MAJOR_VERSION >= 10
++ if (gpsData->fix.status == STATUS_NO_FIX)
++#else
+ if (gpsData->status == STATUS_NO_FIX)
++#endif
+ {
+ // We have no fix and there is no point in further processing.
+ IUSaveText(&GPSstatusT[0], "NO FIX");