forked from premiere/premiere-libtorrent
fixed compilation error when not using boost.date_time. Fixed compilation error when not having DHT logging enabled
This commit is contained in:
parent
9f902e7b9f
commit
573d9f55d6
|
@ -123,8 +123,10 @@ public:
|
||||||
data_iterator end_data() { return m_map.end(); }
|
data_iterator end_data() { return m_map.end(); }
|
||||||
int data_size() const { return int(m_map.size()); }
|
int data_size() const { return int(m_map.size()); }
|
||||||
|
|
||||||
|
#ifdef TORRENT_DHT_VERBOSE_LOGGING
|
||||||
void print_state(std::ostream& os) const
|
void print_state(std::ostream& os) const
|
||||||
{ m_table.print_state(os); }
|
{ m_table.print_state(os); }
|
||||||
|
#endif
|
||||||
|
|
||||||
void announce(sha1_hash const& info_hash, int listen_port
|
void announce(sha1_hash const& info_hash, int listen_port
|
||||||
, boost::function<void(std::vector<tcp::endpoint> const&
|
, boost::function<void(std::vector<tcp::endpoint> const&
|
||||||
|
|
|
@ -91,6 +91,7 @@ namespace libtorrent
|
||||||
struct time_duration
|
struct time_duration
|
||||||
{
|
{
|
||||||
time_duration() {}
|
time_duration() {}
|
||||||
|
time_duration operator/(int rhs) const { return time_duration(diff / rhs); }
|
||||||
explicit time_duration(boost::int64_t d) : diff(d) {}
|
explicit time_duration(boost::int64_t d) : diff(d) {}
|
||||||
boost::int64_t diff;
|
boost::int64_t diff;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue