diff options
Diffstat (limited to 'host/lib/usrp/gpsd_iface.cpp')
-rw-r--r-- | host/lib/usrp/gpsd_iface.cpp | 4 |
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"); } } |