aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/fusefs-kmod
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-02-04 04:45:37 +0800
committered <ed@FreeBSD.org>2009-02-04 04:45:37 +0800
commit4b3e6e952ba4816f9b661dfe30a262177aa57a65 (patch)
tree6bef69856cf67f137eacc912e5a7746b0ac9250b /sysutils/fusefs-kmod
parent480bb60ebee70812ce5d6f1bc0369b3485186f49 (diff)
downloadfreebsd-ports-gnome-4b3e6e952ba4816f9b661dfe30a262177aa57a65.tar.gz
freebsd-ports-gnome-4b3e6e952ba4816f9b661dfe30a262177aa57a65.tar.zst
freebsd-ports-gnome-4b3e6e952ba4816f9b661dfe30a262177aa57a65.zip
Make the fusefs kernel module compile on -CURRENT again.
The kernel module uses unit2minor(), which is not available on -CURRENT anymore. I'm not increasing PORTREVISION, because this commit should not have any effect on <800062 users. Approved by: port maintainer
Diffstat (limited to 'sysutils/fusefs-kmod')
-rw-r--r--sysutils/fusefs-kmod/files/patch-fuse_module__fuse_dev.c14
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);