diff --git a/ChangeLog b/ChangeLog index 827686131..1e5e86742 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,7 @@ * fix uTP edge case where udp socket buffer fills up * fix nagle implementation in uTP + * update use of boost.system to not use deprecated functions * fix GIL issue in python bindings. Deprecated extension support in python * fixed bug where setting upload slots to -1 would not mean infinite * extend the UDP tracker protocol to include the request string from the tracker URL diff --git a/include/libtorrent/debug.hpp b/include/libtorrent/debug.hpp index 2ca1a4af3..d2c2989a4 100644 --- a/include/libtorrent/debug.hpp +++ b/include/libtorrent/debug.hpp @@ -107,12 +107,13 @@ namespace libtorrent #if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_LOGGING || defined TORRENT_ERROR_LOGGING -#include +#include #include "libtorrent/config.hpp" #include "libtorrent/file.hpp" #include "libtorrent/thread.hpp" #if TORRENT_USE_IOSTREAM +#include #include #include #endif diff --git a/include/libtorrent/error_code.hpp b/include/libtorrent/error_code.hpp index f4b676bb9..1ad8e6e43 100644 --- a/include/libtorrent/error_code.hpp +++ b/include/libtorrent/error_code.hpp @@ -364,13 +364,22 @@ namespace libtorrent } using boost::system::error_code; + +#if BOOST_VERSION < 104400 inline boost::system::error_category const& get_system_category() { return boost::system::get_system_category(); } +#else + inline boost::system::error_category const& get_system_category() + { return boost::system::system_category(); } +#endif + inline boost::system::error_category const& get_posix_category() #if BOOST_VERSION < 103600 { return boost::system::get_posix_category(); } -#else +#elif BOOST_VERSION < 104400 { return boost::system::get_generic_category(); } +#else + { return boost::system::generic_category(); } #endif // BOOST_VERSION < 103600 #endif // BOOST_VERSION < 103500