summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLaurent Bigonville <bigon@users.noreply.github.com>2021-01-17 11:49:07 +0100
committerGitHub <noreply@github.com>2021-01-17 10:49:07 +0000
commitd35470382b50aa10e4e81697b23183b50ee45941 (patch)
tree133c2bd0396086d5cd2ef83d7dc0754b76864d4d /lib
parente6df67cf1f6e895c9f72bb3756cfc186d4e78390 (diff)
downloadfuse-d35470382b50aa10e4e81697b23183b50ee45941.tar.gz
Fix FTBFS on kfreebsd (#581)
kfreebsd is a FreeBSD kernel and a GNU libc The only macro defined in that case is __FreeBSD_kernel__ Fix #580
Diffstat (limited to 'lib')
-rw-r--r--lib/mount_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mount_util.c b/lib/mount_util.c
index f1d2325..35e9948 100644
--- a/lib/mount_util.c
+++ b/lib/mount_util.c
@@ -30,7 +30,7 @@
#include <sys/mount.h>
#include <sys/param.h>
-#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__)
#define umount2(mnt, flags) unmount(mnt, ((flags) == 2) ? MNT_FORCE : 0)
#endif