fix logging=off build

This commit is contained in:
Andrei Kurushin 2016-11-16 21:51:58 +03:00 committed by Arvid Norberg
parent 9e1305ed75
commit 0a31e26344
2 changed files with 2 additions and 3 deletions

View File

@ -47,10 +47,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/linked_list.hpp"
#include "libtorrent/disk_buffer_pool.hpp"
#include "libtorrent/file.hpp" // for iovec_t
#if TORRENT_USE_ASSERTS || !defined TORRENT_DISABLE_LOGGING
#include "libtorrent/disk_io_job.hpp"
#endif
namespace libtorrent
{

View File

@ -153,7 +153,9 @@ rpc_manager::rpc_manager(node_id const& our_id
, dht_logger* log)
: m_pool_allocator(sizeof(observer_storage), 10)
, m_sock(sock)
#ifndef TORRENT_DISABLE_LOGGING
, m_log(log)
#endif
, m_settings(settings)
, m_table(table)
, m_our_id(our_id)