From c9075a530d463c9f3ff6c1f25b70a533ec4262f1 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 6 Jan 2015 22:17:22 +0000 Subject: [PATCH] fix build --- src/file.cpp | 4 ++-- src/session_impl.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/file.cpp b/src/file.cpp index 536e365bb..db5ea6789 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -157,7 +157,7 @@ namespace // wrap the windows function in something that looks // like preadv() and pwritev() - int preadv(HANDLE fd, libtorrent::file::iovec_t const* bufs, int num_bufs, libtorrent::boost::int64_t file_offset) + int preadv(HANDLE fd, libtorrent::file::iovec_t const* bufs, int num_bufs, boost::int64_t file_offset) { OVERLAPPED* ol = TORRENT_ALLOCA(OVERLAPPED, num_bufs); memset(ol, 0, sizeof(OVERLAPPED) * num_bufs); @@ -219,7 +219,7 @@ done: return ret; } - int pwritev(HANDLE fd, libtorrent::file::iovec_t const* bufs, int num_bufs, libtorrent::boost::int64_t file_offset) + int pwritev(HANDLE fd, libtorrent::file::iovec_t const* bufs, int num_bufs, boost::int64_t file_offset) { OVERLAPPED* ol = TORRENT_ALLOCA(OVERLAPPED, num_bufs); memset(ol, 0, sizeof(OVERLAPPED) * num_bufs); diff --git a/src/session_impl.cpp b/src/session_impl.cpp index 2261184f0..201951fa5 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -6213,7 +6213,7 @@ retry: if (m_lsd) return; - m_lsd = boost::make_shared(m_io_service + m_lsd = boost::make_shared(boost::ref(m_io_service) , boost::bind(&session_impl::on_lsd_peer, this, _1, _2)); } @@ -6225,7 +6225,7 @@ retry: // the natpmp constructor may fail and call the callbacks // into the session_impl. - m_natpmp = boost::make_shared(m_io_service + m_natpmp = boost::make_shared(boost::ref(m_io_service) , boost::bind(&session_impl::on_port_mapping , this, _1, _2, _3, _4, 0) , boost::bind(&session_impl::on_port_map_log @@ -6260,7 +6260,7 @@ retry: if (m_upnp) return m_upnp.get(); // the upnp constructor may fail and call the callbacks - m_upnp = boost::make_shared(m_io_service + m_upnp = boost::make_shared(boost::ref(m_io_service) , m_listen_interface.address() , m_settings.get_str(settings_pack::user_agent) , boost::bind(&session_impl::on_port_mapping