You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
509 B
16 lines
509 B
diff --git a/dataengines/geolocation/location_gps.cpp b/dataengines/geolocation/location_gps.cpp
|
|
--- a/dataengines/geolocation/location_gps.cpp
|
|
+++ b/dataengines/geolocation/location_gps.cpp
|
|
@@ -51,7 +51,9 @@
|
|
while (!m_abort) {
|
|
Plasma::DataEngine::Data d;
|
|
|
|
-#if GPSD_API_MAJOR_VERSION >= 5
|
|
+#if GPSD_API_MAJOR_VERSION >= 7
|
|
+ if (gps_read(m_gpsdata, NULL, 0) != -1) {
|
|
+#elif GPSD_API_MAJOR_VERSION >= 5
|
|
if (gps_read(m_gpsdata) != -1) {
|
|
#else
|
|
if (gps_poll(m_gpsdata) != -1) {
|
|
|