File Fix-build-with-gpsd-3.21.patch of Package kdebase4-workspace

--- a/plasma/generic/dataengines/geolocation/location_gps.cpp	2020-12-16 01:23:26.779332094 +0100
+++ b/plasma/generic/dataengines/geolocation/location_gps.cpp	2020-12-16 01:24:04.511017468 +0100
@@ -65,7 +65,11 @@
             if (m_gpsdata->online) {
 #endif
                 //kDebug() << "online";
+#if GPSD_API_MAJOR_VERSION >= 10
+                if (m_gpsdata->fix.status != STATUS_NO_FIX) {
+#else
                 if (m_gpsdata->status != STATUS_NO_FIX) {
+#endif
                     //kDebug() << "fix";
                     d["accuracy"] = 30;
                     d["latitude"] = QString::number(m_gpsdata->fix.latitude);
openSUSE Build Service is sponsored by