Attempting to build with -DWITH_BOOST_CONTEXT=OFF will result in
a "conflicting declaration" error when building
test/rgw/test_rgw_dmclock_scheduler.cc
Fixed by avoiding the boost/asio/spawn.hpp include in that case.
Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
(cherry picked from commit
82d66424b786d54116a1373f0fcff9cfbae0aa0f)
Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
#include "rgw/rgw_dmclock_async_scheduler.h"
#include <optional>
+#ifdef HAVE_BOOST_CONTEXT
#include <boost/asio/spawn.hpp>
+#endif
#include <gtest/gtest.h>
#include "acconfig.h"
#include "global/global_context.h"