diff options
-rw-r--r-- | sysutils/fusefs-kmod/files/patch-fuse_module__fuse_dev.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sysutils/fusefs-kmod/files/patch-fuse_module__fuse_dev.c b/sysutils/fusefs-kmod/files/patch-fuse_module__fuse_dev.c index 92adf7a6a745..d141b907a583 100644 --- a/sysutils/fusefs-kmod/files/patch-fuse_module__fuse_dev.c +++ b/sysutils/fusefs-kmod/files/patch-fuse_module__fuse_dev.c @@ -15,3 +15,17 @@ #endif }; +@@ -548,7 +553,12 @@ + /* find any existing device, or allocate new unit number */ + i = clone_create(&fuseclones, &fuse_cdevsw, &unit, dev, 0); + if (i) { +- *dev = make_dev(&fuse_cdevsw, unit2minor(unit), ++ *dev = make_dev(&fuse_cdevsw, ++#if __FreeBSD_version < 800062 ++ unit2minor(unit), ++#else /* __FreeBSD_version >= 800062 */ ++ unit, ++#endif /* __FreeBSD_version < 800062 */ + UID_ROOT, GID_OPERATOR, + S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP, + "fuse%d", unit); |