From efa1f4ebb4420b6d597319b91326723116dd3467 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 3 Mar 2011 18:19:42 +0000 Subject: [PATCH] Fix compilation with libtorrent v0.14 --- src/qtlibtorrent/qbtsession.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qtlibtorrent/qbtsession.cpp b/src/qtlibtorrent/qbtsession.cpp index 1d4eb0b87..77d5df4aa 100644 --- a/src/qtlibtorrent/qbtsession.cpp +++ b/src/qtlibtorrent/qbtsession.cpp @@ -389,8 +389,10 @@ void QBtSession::configureSession() { sessionSettings.cache_size = pref.diskCacheSize()*64; qDebug() << "Using a disk cache size of" << pref.diskCacheSize() << "MiB"; // Disable OS cache to avoid memory problems (uTorrent behavior) +#if LIBTORRENT_VERSION_MINOR > 14 sessionSettings.disk_io_write_mode = session_settings::disable_os_cache_for_aligned_files; sessionSettings.disk_io_read_mode = session_settings::disable_os_cache_for_aligned_files; +#endif // Queueing System if(pref.isQueueingSystemEnabled()) { sessionSettings.active_downloads = pref.getMaxActiveDownloads();