Fix build with gpsd 3.23.1

STATUS_NO_FIX was renamed to STATUS_UNK.

d4a4d8d360
wilder-5.24
Vlad Zahorodnii 5 years ago
parent 233e63798e
commit e6cab5d96f
  1. 4
      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) {

Loading…
Cancel
Save