fix build with disk stats enabled

This commit is contained in:
Arvid Norberg 2012-05-05 19:36:04 +00:00
parent 6ec096d3d2
commit 2c2bd49a4e
2 changed files with 8 additions and 0 deletions

View File

@ -42,6 +42,10 @@ POSSIBILITY OF SUCH DAMAGE.
#include <boost/pool/pool.hpp>
#endif
#ifdef TORRENT_DISK_STATS
#include <fstream>
#endif
#if defined TORRENT_DEBUG || TORRENT_RELEASE_ASSERTS
#include <map>
#endif

View File

@ -38,6 +38,10 @@ POSSIBILITY OF SUCH DAMAGE.
#include <sys/mman.h>
#endif
#ifdef TORRENT_DISK_STATS
#include "libtorrent/time.hpp"
#endif
namespace libtorrent
{
disk_buffer_pool::disk_buffer_pool(int block_size)