diff --git a/dataengines/geolocation/location_gps.cpp b/dataengines/geolocation/location_gps.cpp index 858059ada..ec9ec14ae 100644 --- a/dataengines/geolocation/location_gps.cpp +++ b/dataengines/geolocation/location_gps.cpp @@ -52,7 +52,9 @@ void Gpsd::run() #else if (m_gpsdata->online) { #endif -#if GPSD_API_MAJOR_VERSION >= 10 +#if defined(STATUS_UNK) // STATUS_NO_FIX was renamed to STATUS_UNK without bumping API version + 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) {