From: Tomohiro Kusumi Date: Mon, 14 Jan 2019 20:28:41 +0000 (+0900) Subject: Add support for buildin under DragonFly BSD X-Git-Tag: fuse-3.4.2~14 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b19748173889580ca3966439f82eb8f2c6512c41;p=qemu-gpiodev%2Flibfuse.git Add support for buildin under DragonFly BSD 70e25ea74e("Fix build on non-Linux") broke build on DragonFly BSD, or likely anything other than FreeBSD and NetBSD that is not Linux. Signed-off-by: Tomohiro Kusumi --- diff --git a/lib/mount_util.c b/lib/mount_util.c index 48324c8..f1d2325 100644 --- a/lib/mount_util.c +++ b/lib/mount_util.c @@ -20,7 +20,7 @@ #include #include #include -#if !defined( __NetBSD__) && !defined(__FreeBSD__) +#if !defined( __NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) #include #else #define IGNORE_MTAB @@ -30,8 +30,8 @@ #include #include -#if defined(__NetBSD__) || defined(__FreeBSD__) -#define umount2(mnt, flags) unmount(mnt, (flags == 2) ? MNT_FORCE : 0) +#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) +#define umount2(mnt, flags) unmount(mnt, ((flags) == 2) ? MNT_FORCE : 0) #endif #ifdef IGNORE_MTAB