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>
#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
#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