aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2021-06-17 13:31:30 +0200
committerAaron Rossetto <aaron.rossetto@ni.com>2021-06-17 10:56:50 -0500
commitc0a44be527e65aa83f1a00ab59785906a5411612 (patch)
tree1ab50e6023657c6601c0642e312f2e1c37a05d42 /host/lib/usrp
parent2615547a82bc4e06ff5fcb79c5c1efed76b058c7 (diff)
downloaduhd-c0a44be527e65aa83f1a00ab59785906a5411612.tar.gz
uhd-c0a44be527e65aa83f1a00ab59785906a5411612.tar.bz2
uhd-c0a44be527e65aa83f1a00ab59785906a5411612.zip
usrp2: Fix Boost headers
On Boost 1.76, this would otherwise fail with an error: [...] .../usrp2_impl.cpp:920:37: error: ‘boost::math’ has not been declared 920 | const int sign = boost::math::sign(new_freq); [...]
Diffstat (limited to 'host/lib/usrp')
-rw-r--r--host/lib/usrp/usrp2/usrp2_impl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_impl.cpp b/host/lib/usrp/usrp2/usrp2_impl.cpp
index c2514ae02..370fcc5a6 100644
--- a/host/lib/usrp/usrp2/usrp2_impl.cpp
+++ b/host/lib/usrp/usrp2/usrp2_impl.cpp
@@ -15,10 +15,10 @@
#include <uhd/utils/safe_call.hpp>
#include <uhd/utils/static.hpp>
#include <uhdlib/usrp/common/apply_corrections.hpp>
-#include <boost/asio.hpp> //used for htonl and ntohl
+#include <boost/asio.hpp>
#include <boost/asio/ip/address_v4.hpp>
#include <boost/format.hpp>
-#include <boost/thread.hpp>
+#include <boost/math/special_functions.hpp>
#include <functional>
using namespace uhd;