fix build with boost-1.34.1
This commit is contained in:
@@ -34,7 +34,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
#define TORRENT_POLICY_HPP_INCLUDED
|
||||
|
||||
#include <algorithm>
|
||||
#include <set>
|
||||
#include <deque>
|
||||
|
||||
#include "libtorrent/peer.hpp"
|
||||
#include "libtorrent/piece_picker.hpp"
|
||||
|
@@ -56,6 +56,10 @@ namespace libtorrent {
|
||||
};
|
||||
}
|
||||
|
||||
#if BOOST_VERSION < 103500
|
||||
typedef asio::error::error_category socks_error_category;
|
||||
#else
|
||||
|
||||
struct TORRENT_EXPORT socks_error_category : boost::system::error_category
|
||||
{
|
||||
virtual const char* name() const;
|
||||
@@ -64,6 +68,8 @@ struct TORRENT_EXPORT socks_error_category : boost::system::error_category
|
||||
{ return boost::system::error_condition(ev, *this); }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
extern socks_error_category socks_category;
|
||||
|
||||
class socks5_stream : public proxy_base
|
||||
|
Reference in New Issue
Block a user