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);