fixed trunk build with DHT disabled
This commit is contained in:
parent
088f4bf700
commit
51c544c6bb
|
@ -507,7 +507,9 @@ namespace aux {
|
|||
PRINT_SIZEOF(address_v6::bytes_type)
|
||||
#endif
|
||||
PRINT_SIZEOF(void*)
|
||||
#ifndef TORRENT_DISABLE_DHT
|
||||
PRINT_SIZEOF(dht::node_entry)
|
||||
#endif
|
||||
|
||||
PRINT_SIZEOF(policy::peer)
|
||||
PRINT_OFFSETOF(policy::peer, connection)
|
||||
|
@ -521,9 +523,11 @@ namespace aux {
|
|||
PRINT_SIZEOF(policy::ipv6_peer)
|
||||
#endif
|
||||
|
||||
#ifndef TORRENT_DISABLE_DHT
|
||||
PRINT_SIZEOF(dht::find_data_observer)
|
||||
PRINT_SIZEOF(dht::announce_observer)
|
||||
PRINT_SIZEOF(dht::null_observer)
|
||||
#endif
|
||||
#undef PRINT_OFFSETOF
|
||||
#undef PRINT_SIZEOF
|
||||
|
||||
|
|
|
@ -30,6 +30,8 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
|
||||
*/
|
||||
|
||||
#ifndef TORRENT_DISABLE_DHT
|
||||
|
||||
#include "libtorrent/session.hpp"
|
||||
#include "libtorrent/kademlia/node.hpp" // for verify_message
|
||||
#include "libtorrent/bencode.hpp"
|
||||
|
@ -134,3 +136,12 @@ int test_main()
|
|||
return 0;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
int test_main()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue