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 @@ -59,7 +59,11 @@ if (gps_poll(m_gpsdata) != -1) { #endif //qDebug() << "poll ok"; +#if GPSD_API_MAJOR_VERSION >= 9 + if (m_gpsdata->online.tv_sec || m_gpsdata->online.tv_nsec) { +#else if (m_gpsdata->online) { +#endif //qDebug() << "online"; if (m_gpsdata->status != STATUS_NO_FIX) { //qDebug() << "fix";