fix build with boost-1.34.1

This commit is contained in:
Arvid Norberg
2009-06-03 07:22:43 +00:00
parent c62c4fc783
commit a9a12a2391
6 changed files with 16 additions and 3 deletions

View File

@@ -1749,6 +1749,7 @@ namespace libtorrent
{
ptime now = time_now_hires();
TORRENT_ASSERT(now >= m_last_file_check);
#if BOOST_VERSION > 103600
if (now - m_last_file_check < milliseconds(m_settings.file_checks_delay_per_block))
{
int sleep_time = m_settings.file_checks_delay_per_block
@@ -1761,6 +1762,7 @@ namespace libtorrent
+ boost::posix_time::milliseconds(sleep_time));
}
m_last_file_check = time_now_hires();
#endif
if (m_waiting_to_shutdown) break;