diff options
author | Ben Hilburn <ben.hilburn@ettus.com> | 2014-03-26 11:02:11 -0700 |
---|---|---|
committer | Ben Hilburn <ben.hilburn@ettus.com> | 2014-03-26 11:02:11 -0700 |
commit | 6962543fec1b186bed4ad1332ee601eff07af1e1 (patch) | |
tree | d3e3e91d2868f6e083d0723b20b00e6c5e948b4f /host/lib/usrp/b200 | |
parent | 36583c5b6a6a50f9bc801efb57edcc86a1f49974 (diff) | |
download | uhd-6962543fec1b186bed4ad1332ee601eff07af1e1.tar.gz uhd-6962543fec1b186bed4ad1332ee601eff07af1e1.tar.bz2 uhd-6962543fec1b186bed4ad1332ee601eff07af1e1.zip |
Pulling in patch from Marcus Leech for includes and older OSes.
Diffstat (limited to 'host/lib/usrp/b200')
-rw-r--r-- | host/lib/usrp/b200/b200_iface.cpp | 6 |
1 files changed, 6 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; |