From ba82ff805e986083eeb0007c516b986b0aea5485 Mon Sep 17 00:00:00 2001 From: Matt Benjamin Date: Thu, 10 Dec 2015 11:24:24 -0500 Subject: [PATCH] librgw: add missing include deps (rgw_file.h) Signed-off-by: Matt Benjamin --- src/rgw/rgw_file.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/rgw/rgw_file.h b/src/rgw/rgw_file.h index b2f04da83e91a..b04482d8f75f2 100644 --- a/src/rgw/rgw_file.h +++ b/src/rgw/rgw_file.h @@ -8,6 +8,7 @@ /* internal header */ #include +#include #include #include @@ -18,6 +19,9 @@ #include "xxhash.h" #include "include/buffer.h" #include "common/cohort_lru.h" +#include "rgw_common.h" +#include "rgw_user.h" +#include "rgw_lib.h" /* XXX * ASSERT_H somehow not defined after all the above (which bring @@ -152,7 +156,7 @@ namespace rgw { uint32_t flags; public: - const static string root_name; + const static std::string root_name; static constexpr uint16_t MAX_DEPTH = 256; @@ -318,6 +322,7 @@ namespace rgw { } void add_marker(uint64_t off, const std::string& marker) { + using std::get; directory* d = get(&variant_type); if (d) { d->marker_cache.insert( @@ -326,6 +331,7 @@ namespace rgw { } std::string find_marker(uint64_t off) { // XXX copy + using std::get; directory* d = get(&variant_type); if (d) { const auto& iter = d->marker_cache.find(off); -- 2.39.5