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)