Fix incompatibility between asio and ncurses.h due to the latter defining a macro called "timeout".
diff --git a/asio/include/asio/detail/socket_option.hpp b/asio/include/asio/detail/socket_option.hpp index 27c898a..da68295 100644 --- a/asio/include/asio/detail/socket_option.hpp +++ b/asio/include/asio/detail/socket_option.hpp
@@ -222,7 +222,7 @@ linger(bool e, int t) { enabled(e); - timeout(t); + timeout BOOST_PREVENT_MACRO_SUBSTITUTION(t); } // Set the value for whether linger is enabled. @@ -238,7 +238,7 @@ } // Set the value for the linger timeout. - void timeout(int value) + void timeout BOOST_PREVENT_MACRO_SUBSTITUTION(int value) { #if defined(WIN32) value_.l_linger = static_cast<u_short>(value); @@ -248,7 +248,7 @@ } // Get the value for the linger timeout. - int timeout() const + int timeout BOOST_PREVENT_MACRO_SUBSTITUTION() const { return static_cast<int>(value_.l_linger); }