diff options
author | Ed Schouten <ed@FreeBSD.org> | 2009-02-03 20:45:37 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2009-02-03 20:45:37 +0000 |
commit | abb56b6e21d463d6187a4a4da1e54540c11238a3 (patch) | |
tree | ac7c28fcd6c47e1c76744795763cf14c6a3be2cc /sysutils | |
parent | 9e77e9257b6113445035cdc2d082330fa7d94307 (diff) | |
download | ports-abb56b6e21d463d6187a4a4da1e54540c11238a3.tar.gz ports-abb56b6e21d463d6187a4a4da1e54540c11238a3.zip |
Notes
Diffstat (limited to 'sysutils')
-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); |