diff options
author | Laurent Bigonville <bigon@users.noreply.github.com> | 2021-01-17 11:49:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-17 10:49:07 +0000 |
commit | d35470382b50aa10e4e81697b23183b50ee45941 (patch) | |
tree | 133c2bd0396086d5cd2ef83d7dc0754b76864d4d | |
parent | e6df67cf1f6e895c9f72bb3756cfc186d4e78390 (diff) | |
download | fuse-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
-rw-r--r-- | lib/mount_util.c | 2 |
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 |