Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
PR #1859: switch SquashFUSE to libfuse3 types
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
olifre authored Apr 7, 2024
1 parent 88e9a71 commit e94d375
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/ch_fuse.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
// SquashFUSE redefines __le16 unless HAVE_LINUX_TYPES_LE16 is defined. We are
// assuming it is defined in <linux/types.h> 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 <squashfuse/ll.h>

Expand Down

0 comments on commit e94d375

Please sign in to comment.