Added
Link Here
|
1 |
--- kqemu-freebsd.c.orig 2009-02-12 03:45:30.607773000 -0600 |
2 |
+++ kqemu-freebsd.c 2009-02-12 03:50:10.019986534 -0600 |
3 |
@@ -381,7 +381,12 @@ |
4 |
|
5 |
r = clone_create(&kqemuclones, &kqemu_cdevsw, &unit, dev, 0); |
6 |
if (r) { |
7 |
- *dev = make_dev(&kqemu_cdevsw, unit2minor(unit), |
8 |
+ *dev = make_dev(&kqemu_cdevsw, |
9 |
+#if __FreeBSD_version < 800062 |
10 |
+ unit2minor(unit), |
11 |
+#else /* __FreeBSD_version >= 800062 */ |
12 |
+ unit, |
13 |
+#endif /* __FreeBSD_version < 800062 */ |
14 |
UID_ROOT, GID_WHEEL, 0660, "kqemu%d", unit); |
15 |
if (*dev != NULL) { |
16 |
dev_ref(*dev); |