diff -urN boost_1_55_0.orig/boost/asio/detail/call_stack.hpp boost_1_55_0/boost/asio/detail/call_stack.hpp --- boost_1_55_0.orig/boost/asio/detail/call_stack.hpp 2013-05-20 06:32:20.000000000 -0600 +++ boost_1_55_0/boost/asio/detail/call_stack.hpp 2016-01-30 23:09:01.141159607 -0700 @@ -19,6 +19,13 @@ #include #include +// HACK to only export symbol on windows since gcc doesn't like this for inlines +#if defined(BOOST_ASIO_WINDOWS) +#define BOOST_ASIO_DECL_WINDOWS BOOST_ASIO_DECL +#else +#define BOOST_ASIO_DECL_WINDOWS +#endif + #include namespace boost { @@ -111,17 +118,17 @@ private: // The top of the stack of calls for the current thread. - static tss_ptr top_; + BOOST_ASIO_DECL_WINDOWS static tss_ptr top_; }; -template -tss_ptr::context> -call_stack::top_; - } // namespace detail } // namespace asio } // namespace boost #include +#if defined(BOOST_ASIO_HEADER_ONLY) +# include +#endif // defined(BOOST_ASIO_HEADER_ONLY) + #endif // BOOST_ASIO_DETAIL_CALL_STACK_HPP diff -urN boost_1_55_0.orig/boost/asio/detail/call_stack.ipp boost_1_55_0/boost/asio/detail/call_stack.ipp --- boost_1_55_0.orig/boost/asio/detail/call_stack.ipp 1969-12-31 17:00:00.000000000 -0700 +++ boost_1_55_0/boost/asio/detail/call_stack.ipp 2016-01-30 23:09:12.087090639 -0700 @@ -0,0 +1,38 @@ +// +// detail/call_stack.ipp +// ~~~~~~~~~~~~~~~~~~~~~ +// +// Copyright (c) 2003-2013 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// + +#ifndef BOOST_ASIO_DETAIL_CALL_STACK_IPP +#define BOOST_ASIO_DETAIL_CALL_STACK_IPP + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +# pragma once +#endif // defined(_MSC_VER) && (_MSC_VER >= 1200) + +#include + +#include + +#include + +namespace boost { +namespace asio { +namespace detail { + +template +tss_ptr::context> +BOOST_ASIO_DECL_WINDOWS call_stack::top_; + +} // namespace detail +} // namespace asio +} // namespace boost + +#include + +#endif // BOOST_ASIO_DETAIL_CALL_STACK_IPP diff -urN boost_1_55_0.orig/boost/asio/impl/src.hpp boost_1_55_0/boost/asio/impl/src.hpp --- boost_1_55_0.orig/boost/asio/impl/src.hpp 2013-09-22 16:13:33.000000000 -0600 +++ boost_1_55_0/boost/asio/impl/src.hpp 2016-01-30 23:07:30.881728306 -0700 @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include