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.
edge.strict_endians
Erik Larsson 2015-03-14 06:53:31 +01:00
parent d0cb2ea735
commit 1ebf77f769
2 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

@ -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;
}