From 9cd5c6cc2f2ebb4571845f99f33bcf4cadbada7d Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 1 Mar 2012 08:27:22 +0000 Subject: [PATCH] don't require BOOST_ASIO_ENABLE_CANCELIO on non-windows platforms --- src/udp_socket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/udp_socket.cpp b/src/udp_socket.cpp index 3e0b29313..6ee5a349d 100644 --- a/src/udp_socket.cpp +++ b/src/udp_socket.cpp @@ -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