diff options
author | ed <ed@FreeBSD.org> | 2009-02-04 04:45:37 +0800 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-02-04 04:45:37 +0800 |
commit | 4b3e6e952ba4816f9b661dfe30a262177aa57a65 (patch) | |
tree | 6bef69856cf67f137eacc912e5a7746b0ac9250b /sysutils/fusefs-kmod | |
parent | 480bb60ebee70812ce5d6f1bc0369b3485186f49 (diff) | |
download | freebsd-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.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); |