From da1b61ec225eaf5a78ea5ae1105defb43708827b Mon Sep 17 00:00:00 2001 From: Erik Larsson Date: Thu, 25 Feb 2021 17:13:24 +0200 Subject: [PATCH] lowntfs-3g.c: Fix compile error when building with libfuse < 2.8.0. The libfuse function 'fuse_lowlevel_notify_inval_inode' is only available starting with libfuse 2.8.0 while we advertise compatibility with FUSE 2.6.0 as the baseline. So add a preprocessor check to exclude this code from libfuse < 2.8.0. --- src/lowntfs-3g.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lowntfs-3g.c b/src/lowntfs-3g.c index eea4e6da..badf0529 100644 --- a/src/lowntfs-3g.c +++ b/src/lowntfs-3g.c @@ -3809,7 +3809,7 @@ static void ntfs_fuse_setxattr(fuse_req_t req, fuse_ino_t ino, const char *name, } else res = -errno; #endif -#if CACHEING && !defined(FUSE_INTERNAL) +#if CACHEING && !defined(FUSE_INTERNAL) && FUSE_VERSION >= 28 /* * Most of system xattr settings cause changes to some * file attribute (st_mode, st_nlink, st_mtime, etc.), @@ -4056,7 +4056,7 @@ static void ntfs_fuse_removexattr(fuse_req_t req, fuse_ino_t ino, const char *na } else res = -errno; #endif -#if CACHEING && !defined(FUSE_INTERNAL) +#if CACHEING && !defined(FUSE_INTERNAL) && FUSE_VERSION >= 28 /* * Some allowed system xattr removals cause changes to * some file attribute (st_mode, st_nlink, etc.),