Skip to content

Commit 4e4b36f

Browse files
committed
fix: define FUSE_USE_VERSION before including fuse.h in xattr.h
xattr.h included fuse.h without ltfs_fuse_version.h. libfuse 2 headers default to an old API level when FUSE_USE_VERSION is undefined, but libfuse 3 headers reject it, breaking every translation unit that pulls in xattr.h. The release branch received the same change as part of the FreeBSD build fix (b3e3355).
1 parent af0a5b7 commit 4e4b36f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/libltfs/xattr.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ extern "C" {
6666
#include "libltfs/arch/freebsd/xattr.h"
6767
#endif
6868

69-
#include "fuse.h"
69+
#include "libltfs/ltfs_fuse_version.h"
70+
#include <fuse.h>
71+
7072
#include "ltfs.h"
7173

7274
#define LTFS_PRIVATE_PREFIX "ltfs."

0 commit comments

Comments
 (0)