windows fixes

This commit is contained in:
Arvid Norberg 2010-03-21 02:13:56 +00:00
parent c93e13c6fb
commit 686fc1a1c7
2 changed files with 2 additions and 1 deletions

View File

@ -51,6 +51,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <libtorrent/kademlia/observer.hpp>
#include <libtorrent/hasher.hpp>
#include <libtorrent/time.hpp>
#include <time.h> // time()
#include <fstream>

View File

@ -6292,7 +6292,7 @@ namespace libtorrent
if (flags & torrent_handle::query_last_seen_complete)
{
time_t last = last_seen_complete();
for (std::set<peer_connection*>::iterator i = m_connections.begin()
for (std::set<peer_connection*>::const_iterator i = m_connections.begin()
, end(m_connections.end()); i != i; ++i)
{
last = (std::max)(last, (*i)->last_seen_complete());