diff options
-rw-r--r-- | lib/meson.build | 4 | ||||
-rw-r--r-- | lib/mount_util.c | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/meson.build b/lib/meson.build index 492abf7..996bcfd 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -1,10 +1,10 @@ libfuse_sources = ['fuse.c', 'fuse_i.h', 'fuse_loop.c', 'fuse_loop_mt.c', 'fuse_lowlevel.c', 'fuse_misc.h', 'fuse_opt.c', 'fuse_signals.c', 'buffer.c', 'cuse_lowlevel.c', - 'helper.c', 'modules/subdir.c' ] + 'helper.c', 'modules/subdir.c', 'mount_util.c' ] if host_machine.system().startswith('linux') - libfuse_sources += [ 'mount.c', 'mount_util.c' ] + libfuse_sources += [ 'mount.c' ] else libfuse_sources += [ 'mount_bsd.c' ] endif diff --git a/lib/mount_util.c b/lib/mount_util.c index 95e038f..48324c8 100644 --- a/lib/mount_util.c +++ b/lib/mount_util.c @@ -20,15 +20,17 @@ #include <fcntl.h> #include <limits.h> #include <paths.h> -#ifndef __NetBSD__ +#if !defined( __NetBSD__) && !defined(__FreeBSD__) #include <mntent.h> +#else +#define IGNORE_MTAB #endif #include <sys/stat.h> #include <sys/wait.h> #include <sys/mount.h> #include <sys/param.h> -#ifdef __NetBSD__ +#if defined(__NetBSD__) || defined(__FreeBSD__) #define umount2(mnt, flags) unmount(mnt, (flags == 2) ? MNT_FORCE : 0) #endif |