aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
Diffstat (limited to 'host')
-rw-r--r--host/lib/usrp/b200/b200_iface.cpp6
-rw-r--r--host/lib/usrp/common/adf435x_common.cpp3
2 files changed, 9 insertions, 0 deletions
diff --git a/host/lib/usrp/b200/b200_iface.cpp b/host/lib/usrp/b200/b200_iface.cpp
index 5d799bf01..28a32aaef 100644
--- a/host/lib/usrp/b200/b200_iface.cpp
+++ b/host/lib/usrp/b200/b200_iface.cpp
@@ -32,6 +32,12 @@
#include <iomanip>
#include <libusb.h>
+//! libusb_error_name is only in newer API
+#ifndef HAVE_LIBUSB_ERROR_NAME
+ #define libusb_error_name(code) \
+ str(boost::format("LIBUSB_ERROR_CODE %d") % code)
+#endif
+
using namespace uhd;
using namespace uhd::transport;
diff --git a/host/lib/usrp/common/adf435x_common.cpp b/host/lib/usrp/common/adf435x_common.cpp
index f0df6a334..972a69388 100644
--- a/host/lib/usrp/common/adf435x_common.cpp
+++ b/host/lib/usrp/common/adf435x_common.cpp
@@ -16,8 +16,11 @@
//
#include "adf435x_common.hpp"
+
#include <uhd/types/tune_request.hpp>
#include <uhd/utils/log.hpp>
+#include <cmath>
+
using namespace uhd;