Fix build with gpsd 3.18

The signature of gps_read has changed in 3.18 to add an optional buffer parameter.

Differential Revision: https://phabricator.kde.org/D16081
wilder-5.14
Antonio Rojas 8 years ago
parent 824279fce9
commit 81a0fe6db9
  1. 4
      dataengines/geolocation/location_gps.cpp

@ -51,7 +51,9 @@ void Gpsd::run()
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) {

Loading…
Cancel
Save