forked from premiere/premiere-libtorrent
windows fixes
This commit is contained in:
parent
c93e13c6fb
commit
686fc1a1c7
|
@ -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>
|
||||
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue