summaryrefslogtreecommitdiffstats
path: root/libraries/libtorrent-rasterbar/boost-1.72.0.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libtorrent-rasterbar/boost-1.72.0.patch')
-rw-r--r--libraries/libtorrent-rasterbar/boost-1.72.0.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/libraries/libtorrent-rasterbar/boost-1.72.0.patch b/libraries/libtorrent-rasterbar/boost-1.72.0.patch
new file mode 100644
index 0000000000..dc2d28f783
--- /dev/null
+++ b/libraries/libtorrent-rasterbar/boost-1.72.0.patch
@@ -0,0 +1,36 @@
+From 94bd4ae76f0fb3233eda58794e0105f6e3be92ee Mon Sep 17 00:00:00 2001
+From: arvidn <arvid@libtorrent.org>
+Date: Fri, 13 Dec 2019 21:58:09 +0100
+Subject: [PATCH] support building with new boost version
+
+---
+ ChangeLog | 1 +
+ include/libtorrent/socket_type.hpp | 4 ++++
+ 2 files changed, 5 insertions(+)
+
+diff --git a/ChangeLog b/ChangeLog
+index 6c74a8067a..e060ab190e 100644
+--- a/ChangeLog
++++ b/ChangeLog
+@@ -1,5 +1,6 @@
+ 1.1.14 release
+
++ * support building with new boost version
+ * add handling on invalid piece index to torrent_handle::have_piece()
+ * fix error in treatment of move_storage() flags
+ * fix division by zero in anti-leech choker
+diff --git a/include/libtorrent/socket_type.hpp b/include/libtorrent/socket_type.hpp
+index 578b4534a9..69eabd2569 100644
+--- a/include/libtorrent/socket_type.hpp
++++ b/include/libtorrent/socket_type.hpp
+@@ -190,6 +190,10 @@ namespace libtorrent
+ typedef tcp::socket::protocol_type protocol_type;
+
+ typedef tcp::socket::receive_buffer_size receive_buffer_size;
++
++#if BOOST_VERSION >= 106600
++ using executor_type = tcp::socket::executor_type;
++#endif
+ typedef tcp::socket::send_buffer_size send_buffer_size;
+
+ explicit socket_type(io_service& ios): m_io_service(ios), m_type(0) {}