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
This commit is contained in:
parent
9e77e9257b
commit
abb56b6e21
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=227566
@ -15,3 +15,17 @@
|
|||||||
#endif
|
#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);
|
||||||
|
Loading…
Reference in New Issue
Block a user