diff options
author | Juergen Lock <nox@FreeBSD.org> | 2009-02-12 17:46:29 +0000 |
---|---|---|
committer | Juergen Lock <nox@FreeBSD.org> | 2009-02-12 17:46:29 +0000 |
commit | 8605363e105abd4a638eecf4872d8dedf5b86d58 (patch) | |
tree | 02522addf7a1b5b6e355f10d5487b4a27f9c8198 /emulators/kqemu-kmod | |
parent | 3a9cefc5cd22b8f09b86e3f5283b300e59eeeefc (diff) | |
download | ports-8605363e105abd4a638eecf4872d8dedf5b86d58.tar.gz ports-8605363e105abd4a638eecf4872d8dedf5b86d58.zip |
Notes
Diffstat (limited to 'emulators/kqemu-kmod')
-rw-r--r-- | emulators/kqemu-kmod/Makefile | 2 | ||||
-rw-r--r-- | emulators/kqemu-kmod/files/patch-unit2minorfix | 16 |
2 files changed, 17 insertions, 1 deletions
diff --git a/emulators/kqemu-kmod/Makefile b/emulators/kqemu-kmod/Makefile index 0e778b0e3820..d2987124dc17 100644 --- a/emulators/kqemu-kmod/Makefile +++ b/emulators/kqemu-kmod/Makefile @@ -7,7 +7,7 @@ PORTNAME= kqemu PORTVERSION= 1.3.0.p11 -PORTREVISION= 9 +PORTREVISION= 10 CATEGORIES= emulators kld MASTER_SITES= http://bellard.org/qemu/ \ http://qemu.org/ \ diff --git a/emulators/kqemu-kmod/files/patch-unit2minorfix b/emulators/kqemu-kmod/files/patch-unit2minorfix new file mode 100644 index 000000000000..9531cdd327f8 --- /dev/null +++ b/emulators/kqemu-kmod/files/patch-unit2minorfix @@ -0,0 +1,16 @@ +--- kqemu-freebsd.c.orig 2009-02-12 03:45:30.607773000 -0600 ++++ kqemu-freebsd.c 2009-02-12 03:50:10.019986534 -0600 +@@ -381,7 +381,12 @@ + + r = clone_create(&kqemuclones, &kqemu_cdevsw, &unit, dev, 0); + if (r) { +- *dev = make_dev(&kqemu_cdevsw, unit2minor(unit), ++ *dev = make_dev(&kqemu_cdevsw, ++#if __FreeBSD_version < 800062 ++ unit2minor(unit), ++#else /* __FreeBSD_version >= 800062 */ ++ unit, ++#endif /* __FreeBSD_version < 800062 */ + UID_ROOT, GID_WHEEL, 0660, "kqemu%d", unit); + if (*dev != NULL) { + dev_ref(*dev); |