$NetBSD: patch-ac,v 1.1 2009/01/19 12:17:34 yhardy Exp $ --- oss/pcm_oss.c.orig 2008-10-29 14:42:13.000000000 +0200 +++ oss/pcm_oss.c 2009-01-19 13:04:16.000000000 +0200 @@ -22,7 +22,15 @@ #include #include #include + +#include "config.h" + +#ifdef HAVE_LINUX_SOUNDCARD_H #include +#endif +#ifdef HAVE_SOUNDCARD_H +#include +#endif typedef struct snd_pcm_oss { snd_pcm_ioplug_t io; @@ -116,7 +124,7 @@ snd_pcm_oss_t *oss = io->private_data; if (io->stream == SND_PCM_STREAM_PLAYBACK) - ioctl(oss->fd, SNDCTL_DSP_SYNC); + ioctl(oss->fd, SNDCTL_DSP_SYNC, NULL); return 0; } @@ -125,7 +133,7 @@ snd_pcm_oss_t *oss = io->private_data; int tmp; - ioctl(oss->fd, SNDCTL_DSP_RESET); + ioctl(oss->fd, SNDCTL_DSP_RESET, NULL); tmp = io->channels; if (ioctl(oss->fd, SNDCTL_DSP_CHANNELS, &tmp) < 0) {