From: Casey Bodley Date: Tue, 23 Jan 2018 15:49:31 +0000 (-0500) Subject: boost: include more specific asio headers X-Git-Tag: v12.2.3~126^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=67fbd3830f2681c49b65b0ac93eccd58c219114c;p=ceph.git boost: include more specific asio headers when building with gcc5 and boost 1.66, this #include fails to compile: In file included from build/boost/include/boost/asio/impl/write.hpp:25:0, from build/boost/include/boost/asio/write.hpp:927, from build/boost/include/boost/asio/buffered_write_stream.hpp:29, from build/boost/include/boost/asio/buffered_stream.hpp:22, from build/boost/include/boost/asio.hpp:41, from src/common/Graylog.h:7, from src/common/LogClient.cc:20: build/boost/include/boost/asio/detail/consuming_buffers.hpp: In member function ‘boost::asio::detail::consuming_buffers::prepared_buffers_type boost::asio::detail::consuming_buffers::prepare(std::size_t)’: build/boost/include/boost/asio/detail/consuming_buffers.hpp:105:50: error: parse error in template argument list while (next != end && max_size > 0 && result.count < result.max_buffers) ^ src/CMakeFiles/common-objs.dir/build.make:135: recipe for target 'src/CMakeFiles/common-objs.dir/common/LogClient.cc.o' failed see also: https://svn.boost.org/trac10/ticket/13368 this commit targets the luminous branch specifically because the issues doesn't reproduce on master (as we require gcc7+) Signed-off-by: Casey Bodley --- diff --git a/src/common/Graylog.h b/src/common/Graylog.h index 7e802a89957..f17cf265396 100644 --- a/src/common/Graylog.h +++ b/src/common/Graylog.h @@ -4,7 +4,8 @@ #ifndef __CEPH_LOG_GRAYLOG_H #define __CEPH_LOG_GRAYLOG_H -#include +#include +#include #include #include diff --git a/src/rgw/rgw_coroutine.h b/src/rgw/rgw_coroutine.h index f8423287561..c6f017824d8 100644 --- a/src/rgw/rgw_coroutine.h +++ b/src/rgw/rgw_coroutine.h @@ -6,7 +6,6 @@ #pragma push_macro("_ASSERT_H") #endif -#include #include #ifdef NEED_ASSERT_H