$NetBSD$

--- 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 <sys/ioctl.h>
 #include <alsa/asoundlib.h>
 #include <alsa/pcm_external.h>
+
+#include "config.h"
+
+#ifdef HAVE_LINUX_SOUNDCARD_H
 #include <linux/soundcard.h>
+#endif
+#ifdef HAVE_SOUNDCARD_H
+#include <soundcard.h>
+#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) {
