pkgsrc/emulators/tuxnes/patches/patch-ac
2006-01-12 21:03:20 +00:00

27 lines
907 B
Text

$NetBSD: patch-ac,v 1.2 2006/01/12 21:03:20 joerg Exp $
--- sound.c.orig 2001-04-11 21:45:47.000000000 +0000
+++ sound.c
@@ -104,11 +104,12 @@
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include <sys/ioctl.h>
#if defined(__FreeBSD__)
#include <machine/endian.h>
-#elif defined(__NetBSD__) || defined(__OpenBSD__)
+#elif defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
#include <sys/endian.h>
#else /* Linux */
#include <endian.h>
@@ -411,7 +412,7 @@ InitAudio(int argc, char **argv)
{
int desired_fragmentsize = 0;
#ifdef SNDCTL_DSP_RESET
- if (! ioctl (audiofd, SNDCTL_DSP_RESET)) {
+ if (! ioctl (audiofd, SNDCTL_DSP_RESET, 0)) {
int desired_audiorate;
int desired_audiostereo;
struct SampleFormat *desired_sample_format = sample_format;