summaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-10-04 11:30:14 -0700
committerJosh Blum <josh@joshknows.com>2010-10-04 11:30:14 -0700
commit219183453b23a572ddd6eeec81c3bc1907754560 (patch)
tree7478e7ddaeae8889ba08a0cd96f12b68a448105e /host
parent9cea1342941e74b911ca26cc41c64e340f04c270 (diff)
downloaduhd-219183453b23a572ddd6eeec81c3bc1907754560.tar.gz
uhd-219183453b23a572ddd6eeec81c3bc1907754560.tar.bz2
uhd-219183453b23a572ddd6eeec81c3bc1907754560.zip
uhd: added include for enable_shared_from_this when used
Diffstat (limited to 'host')
-rw-r--r--host/lib/transport/libusb1_zero_copy.cpp2
-rw-r--r--host/lib/transport/udp_zero_copy_asio.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/host/lib/transport/libusb1_zero_copy.cpp b/host/lib/transport/libusb1_zero_copy.cpp
index ab48e4fc4..c7f084f62 100644
--- a/host/lib/transport/libusb1_zero_copy.cpp
+++ b/host/lib/transport/libusb1_zero_copy.cpp
@@ -22,6 +22,7 @@
#include <boost/shared_array.hpp>
#include <boost/foreach.hpp>
#include <boost/thread.hpp>
+#include <boost/enable_shared_from_this.hpp>
#include <vector>
#include <iostream>
@@ -280,7 +281,6 @@ libusb_transfer *usb_endpoint::get_lut_with_wait(double timeout){
**********************************************************************/
class libusb_zero_copy_impl : public usb_zero_copy, public boost::enable_shared_from_this<libusb_zero_copy_impl> {
public:
- typedef boost::shared_ptr<libusb_zero_copy_impl> sptr;
libusb_zero_copy_impl(
libusb::device_handle::sptr handle,
diff --git a/host/lib/transport/udp_zero_copy_asio.cpp b/host/lib/transport/udp_zero_copy_asio.cpp
index 2cf7bde18..e9d91fe45 100644
--- a/host/lib/transport/udp_zero_copy_asio.cpp
+++ b/host/lib/transport/udp_zero_copy_asio.cpp
@@ -25,6 +25,7 @@
#include <boost/asio.hpp>
#include <boost/format.hpp>
#include <boost/thread.hpp>
+#include <boost/enable_shared_from_this.hpp>
#include <iostream>
using namespace uhd;