aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Dickens <michael.dickens@ettus.com>2019-03-27 20:08:33 -0400
committerMartin Braun <martin.braun@ettus.com>2019-03-29 10:18:11 -0700
commit87109484600083a6c74d6c5ae1c1a7e8398261b9 (patch)
treee47e54781809e7f74ae15333039bf45dc372bf4e
parentc1e44c807f1381a74ca6762c34aede9231c9fc66 (diff)
downloaduhd-87109484600083a6c74d6c5ae1c1a7e8398261b9.tar.gz
uhd-87109484600083a6c74d6c5ae1c1a7e8398261b9.tar.bz2
uhd-87109484600083a6c74d6c5ae1c1a7e8398261b9.zip
gpsd: fix API for 'gps_read'
-rw-r--r--host/lib/usrp/gpsd_iface.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/usrp/gpsd_iface.cpp b/host/lib/usrp/gpsd_iface.cpp
index c70011771..c6b75c83d 100644
--- a/host/lib/usrp/gpsd_iface.cpp
+++ b/host/lib/usrp/gpsd_iface.cpp
@@ -119,7 +119,11 @@ private: // member functions
_timeout_cnt = 0;
_detected = true;
+#if GPSD_API_MAJOR_VERSION < 7
if (gps_read(&_gps_data) < 0)
+#else
+ if (gps_read(&_gps_data, NULL, 0) < 0)
+#endif
throw std::runtime_error("error while reading");
}
}