fixed compilation error when not using boost.date_time. Fixed compilation error when not having DHT logging enabled

This commit is contained in:
Arvid Norberg 2007-05-12 18:24:14 +00:00
parent 9f902e7b9f
commit 573d9f55d6
2 changed files with 4 additions and 1 deletions

View File

@ -123,9 +123,11 @@ public:
data_iterator end_data() { return m_map.end(); }
int data_size() const { return int(m_map.size()); }
#ifdef TORRENT_DHT_VERBOSE_LOGGING
void print_state(std::ostream& os) const
{ m_table.print_state(os); }
#endif
void announce(sha1_hash const& info_hash, int listen_port
, boost::function<void(std::vector<tcp::endpoint> const&
, sha1_hash const&)> f);

View File

@ -91,6 +91,7 @@ namespace libtorrent
struct time_duration
{
time_duration() {}
time_duration operator/(int rhs) const { return time_duration(diff / rhs); }
explicit time_duration(boost::int64_t d) : diff(d) {}
boost::int64_t diff;
};