fix build with boost-1.34.1

This commit is contained in:
Arvid Norberg
2009-06-03 07:22:43 +00:00
parent c62c4fc783
commit a9a12a2391
6 changed files with 16 additions and 3 deletions

View File

@@ -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"

View File

@@ -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