Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

Commit e94d375

Browse files
authored
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.
1 parent 88e9a71 commit e94d375

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/ch_fuse.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
// SquashFUSE redefines __le16 unless HAVE_LINUX_TYPES_LE16 is defined. We are
2828
// assuming it is defined in <linux/types.h> on your machine.
2929
#define HAVE_LINUX_TYPES_LE16
30+
// The forget operation in libfuse3 takes uint64_t as third parameter,
31+
// while SquashFUSE defaults to unsigned long as used in libfuse2.
32+
// This causes a mess on arches with different size of these types,
33+
// so explicitly switch to the libfuse3 variant.
34+
#define HAVE_FUSE_LL_FORGET_OP_64T
3035
// Now we can include ll.h.
3136
#include <squashfuse/ll.h>
3237

0 commit comments

Comments
 (0)