From 4304ca95d3aa2ff009498e792ee09f4d84566ad3 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Fri, 8 Dec 2023 11:24:54 -0500 Subject: [PATCH] librbd: include asio strand headers in librbd.cc Fixes: https://tracker.ceph.com/issues/63682 Signed-off-by: Casey Bodley --- src/librbd/librbd.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/librbd/librbd.cc b/src/librbd/librbd.cc index 1272d95dd7e5c..132a0084a9f66 100644 --- a/src/librbd/librbd.cc +++ b/src/librbd/librbd.cc @@ -15,6 +15,12 @@ #include +// these strand headers declare static variables that need to be shared between +// librbd.so and librados.so. referencing them here causes librbd.so to link +// their symbols as 'global unique'. see https://tracker.ceph.com/issues/63682 +#include +#include + #include "common/deleter.h" #include "common/dout.h" #include "common/errno.h" -- 2.39.5