aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>2019-01-15 05:28:41 +0900
committerNikolaus Rath <Nikolaus@rath.org>2019-01-14 20:28:41 +0000
commitb19748173889580ca3966439f82eb8f2c6512c41 (patch)
tree7de94c7b728384ee2c990c3a539c253df949a8c7
parente7909ad6484899617dec9664a4b11e8af6b4174a (diff)
downloadlibfuse-b19748173889580ca3966439f82eb8f2c6512c41.tar.gz
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 <kusumi.tomohiro@gmail.com>
-rw-r--r--lib/mount_util.c6
1 files 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 <fcntl.h>
#include <limits.h>
#include <paths.h>
-#if !defined( __NetBSD__) && !defined(__FreeBSD__)
+#if !defined( __NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__)
#include <mntent.h>
#else
#define IGNORE_MTAB
@@ -30,8 +30,8 @@
#include <sys/mount.h>
#include <sys/param.h>
-#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