From d308dce99ba20c241942c56a3ee1c8257bfaf742 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 15 Oct 2014 03:01:39 +0000 Subject: [PATCH] CMakeList.txt fix --- CMakeLists.txt | 5 ++++- src/session_impl.cpp | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a59a45a00..f3bc3865b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,6 +16,7 @@ set(sources block_cache bloom_filter chained_buffer + crc32c create_torrent disk_buffer_holder entry @@ -52,6 +53,7 @@ set(sources puff random request_blocks + resolver rss session session_call @@ -105,6 +107,7 @@ set(sources # -- kademlia -- set(kademlia_sources + dos_blocker dht_tracker node refresh @@ -233,7 +236,7 @@ endif() # Boost if(NOT DEFINED Boost_INCLUDE_DIR OR NOT DEFINED Boost_LIBRARIES) - FIND_PACKAGE( Boost COMPONENTS system thread date_time chrono) + FIND_PACKAGE( Boost COMPONENTS system thread date_time chrono random) endif() include_directories(${Boost_INCLUDE_DIR}) target_link_libraries(torrent-rasterbar ${Boost_LIBRARIES}) diff --git a/src/session_impl.cpp b/src/session_impl.cpp index 506887c77..664166af9 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -1998,6 +1998,7 @@ namespace aux { enum { listen_no_system_port = 0x02 }; + // TODO: 3 return the listen_socket_t instead of taking it as an out-parameter void session_impl::setup_listener(listen_socket_t* s, std::string const& device , bool ipv4, int port, int& retries, int flags, error_code& ec) {