From b19748173889580ca3966439f82eb8f2c6512c41 Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Tue, 15 Jan 2019 05:28:41 +0900 Subject: [PATCH] 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 --- lib/mount_util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.30.2