From 1ebf77f769a06994e5444613de7d3aceaa1ce83a Mon Sep 17 00:00:00 2001 From: Erik Larsson Date: Sat, 14 Mar 2015 06:53:31 +0100 Subject: [PATCH] Fix improper #ifdef conditions around FUSE_CAP_IOCTL_DIR. The capability actually appeared in FUSE 2.9, not 2.8. However in order to maintain similarity to earlier #ifdef:s, we simpy check if FUSE_CAP_IOCTL_DIR is defined rather than checking the FUSE version. --- src/lowntfs-3g.c | 4 ++-- src/ntfs-3g.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lowntfs-3g.c b/src/lowntfs-3g.c index 35efbed4..390c965b 100644 --- a/src/lowntfs-3g.c +++ b/src/lowntfs-3g.c @@ -588,9 +588,9 @@ static void ntfs_init(void *userdata __attribute__((unused)), >= SAFE_CAPACITY_FOR_BIG_WRITES)) conn->want |= FUSE_CAP_BIG_WRITES; #endif -#if FUSE_VERSION >= 28 +#ifdef FUSE_CAP_IOCTL_DIR conn->want |= FUSE_CAP_IOCTL_DIR; -#endif /* FUSE_VERSION >= 28 */ +#endif /* defined(FUSE_CAP_IOCTL_DIR) */ } static int ntfs_fuse_getstat(struct SECURITY_CONTEXT *scx, diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index bb978459..46cc1417 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -657,9 +657,9 @@ static void *ntfs_init(struct fuse_conn_info *conn) >= SAFE_CAPACITY_FOR_BIG_WRITES)) conn->want |= FUSE_CAP_BIG_WRITES; #endif -#if FUSE_VERSION >= 28 +#ifdef FUSE_CAP_IOCTL_DIR conn->want |= FUSE_CAP_IOCTL_DIR; -#endif /* FUSE_VERSION >= 28 */ +#endif /* defined(FUSE_CAP_IOCTL_DIR) */ return NULL; }