From 87109484600083a6c74d6c5ae1c1a7e8398261b9 Mon Sep 17 00:00:00 2001 From: Michael Dickens Date: Wed, 27 Mar 2019 20:08:33 -0400 Subject: gpsd: fix API for 'gps_read' --- host/lib/usrp/gpsd_iface.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'host/lib/usrp/gpsd_iface.cpp') 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"); } } -- cgit v1.2.3