From: Michael Forney Date: Sat, 15 Jun 2019 10:16:45 +0000 (-0700) Subject: Fix build with IGNORE_MTAB (#425) X-Git-Tag: fuse-3.6.2~6 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f0c52798b761280583379ba267b0ecc1ea34bbfc;p=qemu-gpiodev%2Flibfuse.git Fix build with IGNORE_MTAB (#425) chdir_to_parent and check_is_mount are used by should_auto_mount, added in fuse-3.3.0, regardless of whether IGNORE_MTAB is defined. --- diff --git a/util/fusermount.c b/util/fusermount.c index 5e0b104..56da6ec 100644 --- a/util/fusermount.c +++ b/util/fusermount.c @@ -208,6 +208,7 @@ static int may_unmount(const char *mnt, int quiet) return 0; } +#endif /* * Check whether the file specified in "fusermount3 -u" is really a @@ -395,6 +396,7 @@ static int chdir_to_parent(char *copy, const char **lastp) return 0; } +#ifndef IGNORE_MTAB /* Check whether the kernel supports UMOUNT_NOFOLLOW flag */ static int umount_nofollow_support(void) {