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

--- kde-workspace-4.11.22.orig/plasma/generic/dataengines/geolocation/location_gps.cpp  2022-06-25 18:05:20.508739280 +0200
+++ kde-workspace-4.11.22/plasma/generic/dataengines/geolocation/location_gps.cpp       2022-06-25 18:04:22.720660045 +0200
@@ -65,7 +65,9 @@
             if (m_gpsdata->online) {
 #endif
                 //kDebug() << "online";
-#if GPSD_API_MAJOR_VERSION >= 10
+#if GPSD_API_MAJOR_VERSION >= 12
+                if (m_gpsdata->fix.status != STATUS_UNK) {
+#elif GPSD_API_MAJOR_VERSION >= 10
                 if (m_gpsdata->fix.status != STATUS_NO_FIX) {
 #else
                 if (m_gpsdata->status != STATUS_NO_FIX) {
openSUSE Build Service is sponsored by