don't require BOOST_ASIO_ENABLE_CANCELIO on non-windows platforms

This commit is contained in:
Arvid Norberg 2012-03-01 08:27:22 +00:00
parent 6144280fde
commit 9cd5c6cc2f
1 changed files with 1 additions and 1 deletions

View File

@ -518,7 +518,7 @@ void udp_socket::unwrap(error_code const& e, char const* buf, int size)
m_callback(e, sender, p, size - (p - buf));
}
#ifndef BOOST_ASIO_ENABLE_CANCELIO
#if !defined BOOST_ASIO_ENABLE_CANCELIO && defined TORRENT_WINDOWS
#error BOOST_ASIO_ENABLE_CANCELIO needs to be defined when building libtorrent to enable cancel() in asio on windows
#endif