From 2c2bd49a4e8cb2d800b453ac1f6ba488f4f57f2a Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 5 May 2012 19:36:04 +0000 Subject: [PATCH] fix build with disk stats enabled --- include/libtorrent/disk_buffer_pool.hpp | 4 ++++ src/disk_buffer_pool.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/include/libtorrent/disk_buffer_pool.hpp b/include/libtorrent/disk_buffer_pool.hpp index 017d9b178..c09a9457a 100644 --- a/include/libtorrent/disk_buffer_pool.hpp +++ b/include/libtorrent/disk_buffer_pool.hpp @@ -42,6 +42,10 @@ POSSIBILITY OF SUCH DAMAGE. #include #endif +#ifdef TORRENT_DISK_STATS +#include +#endif + #if defined TORRENT_DEBUG || TORRENT_RELEASE_ASSERTS #include #endif diff --git a/src/disk_buffer_pool.cpp b/src/disk_buffer_pool.cpp index c4fec8326..38f614400 100644 --- a/src/disk_buffer_pool.cpp +++ b/src/disk_buffer_pool.cpp @@ -38,6 +38,10 @@ POSSIBILITY OF SUCH DAMAGE. #include #endif +#ifdef TORRENT_DISK_STATS +#include "libtorrent/time.hpp" +#endif + namespace libtorrent { disk_buffer_pool::disk_buffer_pool(int block_size)