summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2009-02-03 20:45:37 +0000
committerEd Schouten <ed@FreeBSD.org>2009-02-03 20:45:37 +0000
commitabb56b6e21d463d6187a4a4da1e54540c11238a3 (patch)
treeac7c28fcd6c47e1c76744795763cf14c6a3be2cc
parentUpdate to 0.4.23. (diff)
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
Notes
Notes: svn path=/head/; revision=227566
-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);