From ad989894666729ebd77ee1b9b0b04db75d2a9aa4 Mon Sep 17 00:00:00 2001 From: lixiaoy1 Date: Fri, 14 Aug 2020 07:09:57 -0400 Subject: [PATCH] rbd/rwl: fix the config issue Include acconfig.h to the librbd/cache/Util.h. Signed-off-by: Li, Xiaoyan --- src/librbd/cache/Utils.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/librbd/cache/Utils.h b/src/librbd/cache/Utils.h index 99752529072ea..e69b09b3aaefe 100644 --- a/src/librbd/cache/Utils.h +++ b/src/librbd/cache/Utils.h @@ -4,6 +4,8 @@ #ifndef CEPH_LIBRBD_CACHE_UTILS_H #define CEPH_LIBRBD_CACHE_UTILS_H +#include "acconfig.h" + namespace librbd { namespace cache { @@ -15,7 +17,7 @@ bool is_rwl_enabled(T& image_ctx) { return image_ctx.config.template get_val("rbd_rwl_enabled"); #else return false; -#endif +#endif // WITH_RBD_RWL } } // namespace util -- 2.39.5