From e94d3752a28334ee0468e5ff27d93088b67308ee Mon Sep 17 00:00:00 2001 From: Oliver Freyermuth Date: Sun, 7 Apr 2024 23:01:00 +0200 Subject: [PATCH] PR #1859: switch SquashFUSE to libfuse3 types The forget operation in libfuse3 takes uint64_t as third parameter, while SquashFUSE defaults to unsigned long as used in libfuse2. This causes a mess on arches with different size of these types, so explicitly switch to the libfuse3 variant. --- bin/ch_fuse.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/ch_fuse.c b/bin/ch_fuse.c index 0ebda0a59..ce60bbcc7 100644 --- a/bin/ch_fuse.c +++ b/bin/ch_fuse.c @@ -27,6 +27,11 @@ // SquashFUSE redefines __le16 unless HAVE_LINUX_TYPES_LE16 is defined. We are // assuming it is defined in on your machine. #define HAVE_LINUX_TYPES_LE16 +// The forget operation in libfuse3 takes uint64_t as third parameter, +// while SquashFUSE defaults to unsigned long as used in libfuse2. +// This causes a mess on arches with different size of these types, +// so explicitly switch to the libfuse3 variant. +#define HAVE_FUSE_LL_FORGET_OP_64T // Now we can include ll.h. #include