diff options
author | jkim <jkim@FreeBSD.org> | 2009-02-17 05:28:49 +0800 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2009-02-17 05:28:49 +0800 |
commit | 635db622e82f39c209132fa9a3eacd882501b04f (patch) | |
tree | b9388c951a3f233f6f81716bce4f658c82d0d34a /audio | |
parent | 4504a512e6a2906d1b188998bee7b06868a58d2b (diff) | |
download | freebsd-ports-gnome-635db622e82f39c209132fa9a3eacd882501b04f.tar.gz freebsd-ports-gnome-635db622e82f39c209132fa9a3eacd882501b04f.tar.zst freebsd-ports-gnome-635db622e82f39c209132fa9a3eacd882501b04f.zip |
There is no need for minor() on -CURRENT. Just use dev2unit() macro.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/oss/files/patch-kernel-OS-FreeBSD-os_freebsd.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/audio/oss/files/patch-kernel-OS-FreeBSD-os_freebsd.c b/audio/oss/files/patch-kernel-OS-FreeBSD-os_freebsd.c index 9eced854b58b..3284eab654a2 100644 --- a/audio/oss/files/patch-kernel-OS-FreeBSD-os_freebsd.c +++ b/audio/oss/files/patch-kernel-OS-FreeBSD-os_freebsd.c @@ -5,7 +5,7 @@ #ifndef VDEV_SUPPORT struct fileinfo _fi, * fi = &_fi; +#if __FreeBSD_version >= 800062 -+ dev = minor (dev2unit (bsd_dev)); ++ dev = dev2unit (bsd_dev); +#else dev = minor (bsd_dev); +#endif @@ -17,7 +17,7 @@ #ifndef VDEV_SUPPORT struct fileinfo _fi, * fi = &_fi; +#if __FreeBSD_version >= 800062 -+ dev = minor (dev2unit (bsd_dev)); ++ dev = dev2unit (bsd_dev); +#else dev = minor (bsd_dev); +#endif @@ -29,7 +29,7 @@ oss_open (struct cdev *bsd_dev, int flags, int mode, struct thread *p) { +#if __FreeBSD_version >= 800062 -+ int dev = minor (dev2unit (bsd_dev)); ++ int dev = dev2unit (bsd_dev); +#else int dev = minor (bsd_dev); +#endif @@ -41,7 +41,7 @@ #ifndef VDEV_SUPPORT struct fileinfo _fi, * fi = &_fi; +#if __FreeBSD_version >= 800062 -+ dev = minor (dev2unit (bsd_dev)); ++ dev = dev2unit (bsd_dev); +#else dev = minor (bsd_dev); +#endif @@ -53,7 +53,7 @@ #ifndef VDEV_SUPPORT struct fileinfo _fi, * fi = &_fi; +#if __FreeBSD_version >= 800062 -+ dev = minor (dev2unit (bsd_dev)); ++ dev = dev2unit (bsd_dev); +#else dev = minor (bsd_dev); +#endif @@ -65,7 +65,7 @@ #ifndef VDEV_SUPPORT struct fileinfo _fi, * fi = &_fi; +#if __FreeBSD_version >= 800062 -+ dev = minor (dev2unit (bsd_dev)); ++ dev = dev2unit (bsd_dev); +#else dev = minor (bsd_dev); +#endif @@ -77,7 +77,7 @@ int err; #ifndef VDEV_SUPPORT +#if __FreeBSD_version >= 800062 -+ dev = minor (dev2unit (bsd_dev)); ++ dev = dev2unit (bsd_dev); +#else dev = minor (bsd_dev); +#endif |