]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/global/global_init.cc
import quincy beta 17.1.0
[ceph.git] / ceph / src / global / global_init.cc
index 32e36d45fe79bcf33bc63c29536a827b1a7a1e53..d74a0f4d2f27a646be7a51858d751cdae75f0e31 100644 (file)
  *
  */
 
-#if __has_include(<filesystem>)
 #include <filesystem>
-namespace fs = std::filesystem;
-#elif __has_include(<experimental/filesystem>)
-#include <experimental/filesystem>
-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<std::string,std::string> *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