openbsd-ports/emulators/qemu/patches/patch-audio_ossaudio_c
todd 9993d5d566 update to 0.8.0, see qemu.org for full ChangeLog
for OpenBSD, amd64 simulation on i386 appars to work ok now
2005-12-27 07:56:14 +00:00

20 lines
511 B
Plaintext

$OpenBSD: patch-audio_ossaudio_c,v 1.2 2005/12/27 07:56:15 todd Exp $
--- audio/ossaudio.c.orig Mon Dec 19 16:51:53 2005
+++ audio/ossaudio.c Tue Dec 20 11:00:04 2005
@@ -21,10 +21,15 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
+#include <stdlib.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/ioctl.h>
+#ifdef __OpenBSD__
+#include <soundcard.h>
+#else
#include <sys/soundcard.h>
+#endif
#include "vl.h"
#define AUDIO_CAP "oss"