From 5ff6708b3d7afe64a9628bf1dd4564cbce27a4e6 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 18 Jan 2008 02:02:18 +0000 Subject: [PATCH] made it build without dht support --- src/session_impl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/session_impl.cpp b/src/session_impl.cpp index c43ca41a7..52da7daf4 100755 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -991,6 +991,8 @@ namespace detail } } +#ifndef TORRENT_DISABLE_DHT + void session_impl::on_receive_udp(udp::endpoint const& ep, char const* buf, int len) { if (len > 20 && *buf == 'd' && m_dht) @@ -999,6 +1001,8 @@ namespace detail m_dht->on_receive(ep, buf, len); } } + +#endif void session_impl::async_accept(boost::shared_ptr const& listener) {