X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fglobal%2Fglobal_init.cc;h=d74a0f4d2f27a646be7a51858d751cdae75f0e31;hb=20effc670b57271cb089376d6d0800990e5218d5;hp=32e36d45fe79bcf33bc63c29536a827b1a7a1e53;hpb=a71831dadd1e1f3e0fa70405511f65cc33db0498;p=ceph.git diff --git a/ceph/src/global/global_init.cc b/ceph/src/global/global_init.cc index 32e36d45f..d74a0f4d2 100644 --- a/ceph/src/global/global_init.cc +++ b/ceph/src/global/global_init.cc @@ -12,14 +12,7 @@ * */ -#if __has_include() #include -namespace fs = std::filesystem; -#elif __has_include() -#include -namespace fs = std::experimental::filesystem; -#endif - #include "common/async/context_pool.h" #include "common/ceph_argparse.h" #include "common/code_environment.h" @@ -50,6 +43,8 @@ namespace fs = std::experimental::filesystem; #define dout_context g_ceph_context #define dout_subsys ceph_subsys_ +namespace fs = std::filesystem; + using std::cerr; using std::string; @@ -220,7 +215,7 @@ global_init(const std::map *defaults, g_ceph_context->_log->set_flush_on_exit(); // drop privileges? - ostringstream priv_ss; + std::ostringstream priv_ss; #ifndef _WIN32 // consider --setuser root a no-op, even if we're not root