aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorMichael Dickens <michael.dickens@ettus.com>2019-03-27 20:08:33 -0400
committermichael-west <michael.west@ettus.com>2019-05-21 15:47:16 -0700
commit904b4d703a58479bdb8ae8efb245aeeaa4605e39 (patch)
treeb50060d08a87b027716e8e284f749d2d50d20ef2 /host
parent6875d061d8dd3cc59427638d35f76079beb34e70 (diff)
downloaduhd-904b4d703a58479bdb8ae8efb245aeeaa4605e39.tar.gz
uhd-904b4d703a58479bdb8ae8efb245aeeaa4605e39.tar.bz2
uhd-904b4d703a58479bdb8ae8efb245aeeaa4605e39.zip
gpsd: fix API for 'gps_read'
Diffstat (limited to 'host')
-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");
}
}