]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
Workaround for broken OSS_GETVERSION on FreeBSD, part two
authorJuergen Lock <nox@jelal.kn-bremen.de>
Tue, 12 Jan 2010 22:48:04 +0000 (23:48 +0100)
committermalc <av1474@comtv.ru>
Tue, 12 Jan 2010 22:59:03 +0000 (01:59 +0300)
commit72ff25e4e98d6dba9286d032b9ff5432553bbad5
treebf39163f08bcd88e0a400853122cd4f410524e48
parentc9f79a3f79a48de28b4575cb5644bcf45d3754d0
Workaround for broken OSS_GETVERSION on FreeBSD, part two

Turns out on those versions of FreeBSD (>= 7.x) that know OSS_GETVERSION
the ioctl doesn't actually work yet (except in the Linuxolator), so if
building on FreeBSD assume the sound drivers are new enough if the ioctl
returns the errno it does currently on FreeBSD.

(Rev 2 after private discussion with malc.)

Signed-off-by: Juergen Lock <nox@jelal.kn-bremen.de>
Signed-off-by: malc <av1474@comtv.ru>
audio/ossaudio.c