forked from premiere/premiere-libtorrent
fix various build options
This commit is contained in:
parent
2ed4bee1cb
commit
78bacfe7c1
|
@ -47,6 +47,9 @@ namespace libtorrent { namespace dht {
|
||||||
template<class InIt>
|
template<class InIt>
|
||||||
node_endpoint read_node_endpoint(udp protocol, InIt&& in)
|
node_endpoint read_node_endpoint(udp protocol, InIt&& in)
|
||||||
{
|
{
|
||||||
|
#if !TORRENT_USE_IPV6
|
||||||
|
TORRENT_UNUSED(protocol);
|
||||||
|
#endif
|
||||||
node_endpoint ep;
|
node_endpoint ep;
|
||||||
std::copy(in, in + 20, ep.id.begin());
|
std::copy(in, in + 20, ep.id.begin());
|
||||||
in += 20;
|
in += 20;
|
||||||
|
|
|
@ -160,7 +160,11 @@ rpc_manager::rpc_manager(node_id const& our_id
|
||||||
, m_our_id(our_id)
|
, m_our_id(our_id)
|
||||||
, m_allocated_observers(0)
|
, m_allocated_observers(0)
|
||||||
, m_destructing(false)
|
, m_destructing(false)
|
||||||
{}
|
{
|
||||||
|
#ifdef TORRENT_DISABLE_LOGGING
|
||||||
|
TORRENT_UNUSED(log);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
rpc_manager::~rpc_manager()
|
rpc_manager::~rpc_manager()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue