From 4c9f98a819081440ad334c657c9aa733342b3af7 Mon Sep 17 00:00:00 2001 From: Andreas Joachim Peters Date: Thu, 23 May 2024 15:40:12 +0200 Subject: [PATCH] S3: add missing temporary define for XrdPosix_Getxattr --- src/XrdS3/XrdS3Utils.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/XrdS3/XrdS3Utils.cc b/src/XrdS3/XrdS3Utils.cc index a6f2c6518eb..59bca75e472 100644 --- a/src/XrdS3/XrdS3Utils.cc +++ b/src/XrdS3/XrdS3Utils.cc @@ -26,6 +26,7 @@ #include "XrdS3Utils.hh" //------------------------------------------------------------------------------ #include +#include #include #include #include @@ -306,6 +307,10 @@ std::string S3Utils::GetXattr(const std::filesystem::path &path, const std::string &key) { std::vector res; +// TODO: Replace with the real XrdPosix_Getxattr once implemented. +#include "XrdS3XAttr.hh" +#define XrdPosix_Getxattr getxattr + auto ret = XrdPosix_Getxattr(path.c_str(), ("user.s3." + key).c_str(), nullptr, 0);