Change torrent so it can be built with libtorrent 1.2.5
authorHilko Bengen <bengen@debian.org>
Fri, 28 Aug 2020 16:00:22 +0000 (18:00 +0200)
committerHilko Bengen <bengen@debian.org>
Wed, 27 Apr 2022 08:14:16 +0000 (09:14 +0100)
Gbp-Pq: Name 0005-Change-torrent-so-it-can-be-built-with-libtorrent-1..patch

plugins/torrent/torrent.cpp

index d8cbda95b11caa97d4ee450de695fd82064b21c8..6c94f6e2126697c8535f8cdd197bee5883a10d0b 100644 (file)
@@ -104,10 +104,10 @@ static struct setting settings[] = {
 static const size_t nr_settings = sizeof settings / sizeof settings[0];
 
 static libtorrent::alert_category_t alerts =
-    libtorrent::alert_category::error
-  | libtorrent::alert_category::piece_progress
-  | libtorrent::alert_category::status
-  | libtorrent::alert_category::storage
+    libtorrent::alert::error_notification
+  | libtorrent::alert::piece_progress_notification
+  | libtorrent::alert::status_notification
+  | libtorrent::alert::storage_notification
   ;
 
 /* This condition is used to signal the plugin when a piece has been