File 0003-45925-bionic-miss-statx.patch of Package ceph-ceph-20.2.0+20260219.ea3e6758

diff --git a/src/client/fuse_ll.cc b/src/client/fuse_ll.cc
index faf33d1bb..80e430b48 100644
--- a/src/client/fuse_ll.cc
+++ b/src/client/fuse_ll.cc
@@ -69,6 +69,10 @@
 #define FUSE_SUPER_MAGIC 0x65735546
 #endif
 
+#ifndef STATX_INO
+#include <linux/stat.h>
+#endif
+
 #define _CEPH_CLIENT_ID	"ceph.client_id"
 #endif
 
@@ -194,6 +198,12 @@ public:
 };
 
 #if defined(__linux__)
+ssize_t statx(int dfd, const char *filename, unsigned flags,
+	      unsigned int mask, struct statx *buffer)
+{
+	return syscall(__NR_statx, dfd, filename, flags, mask, buffer);
+}
+
 static int already_fuse_mounted(const char *path, bool &already_mounted)
 {
   struct statx path_statx;
openSUSE Build Service is sponsored by