1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 11:15:13 +03:00
aports/community/ceph17/46-statx.patch
2022-10-22 10:27:05 +00:00

28 lines
652 B
Diff

--- a/src/client/fuse_ll.cc
+++ b/src/client/fuse_ll.cc
@@ -25,6 +25,7 @@
#include <unistd.h>
#if defined(__linux__)
+#include <features.h>
#include <libgen.h>
#include <sys/vfs.h>
#include <sys/xattr.h>
@@ -178,7 +179,7 @@
struct fuse_args args;
};
-#if defined(__linux__)
+#if defined(__linux__) && defined(__GLIBC__)
static int already_fuse_mounted(const char *path, bool &already_mounted)
{
struct statx path_statx;
@@ -248,7 +249,7 @@
return err;
}
-#else // non-linux platforms
+#else // non-linux platforms and musl
static int already_fuse_mounted(const char *path, bool &already_mounted)
{
already_mounted = false;