$OpenBSD: patch-xfsound_xfdsp_c,v 1.3 2002/11/28 20:35:43 margarida Exp $
--- xfsound/xfdsp.c.orig	Wed Nov 21 13:36:39 2001
+++ xfsound/xfdsp.c	Tue Nov 12 15:40:40 2002
@@ -66,6 +66,9 @@
 #if defined(HAVE_ARTS)
 #include <artsc.h>
 #else
+#if defined(HAVE_SOUNDCARD_H)
+#include <soundcard.h>
+#else
 #if defined(HAVE_SYS_SOUNDCARD_H)
 #include <sys/soundcard.h>
 #else
@@ -78,6 +81,7 @@
 #endif
 #endif
 #endif
+#endif
 
 #include "xfdsp.h"
 
@@ -89,6 +93,20 @@
 #  include "dmalloc.h"
 #endif
 
+#ifdef __OpenBSD__
+static char *dsp[] = {
+	"/dev/sound",
+	"/dev/sound0",
+	"/dev/sound1",
+	"/dev/sound2",
+	"/dev/sound3",
+	"/dev/sound4",
+	"/dev/sound5",
+	"/dev/sound6",
+	"/dev/sound7",
+	NULL
+};
+#else
 static char *dsp[] = {
 	"/dev/dsp",
 	"/dev/dsp0",
@@ -101,6 +119,7 @@ static char *dsp[] = {
 	"/dev/dsp7",
 	NULL
 };
+#endif
 
 void
 sound_init (void)
@@ -119,7 +138,7 @@ sound_init (void)
 #endif
 }
 
-#if defined(HAVE_SYS_SOUNDCARD_H) || defined(HAVE_LINUX_SOUNDCARD_H) || defined(HAVE_MACHINE_SOUNDCARD_H) || defined(HAVE_ARTS)
+#if defined(HAVE_SOUNDCARD_H) || defined(HAVE_SYS_SOUNDCARD_H) || defined(HAVE_LINUX_SOUNDCARD_H) || defined(HAVE_MACHINE_SOUNDCARD_H) || defined(HAVE_ARTS)
 
 #if !defined(HAVE_ARTS)
 int masterfd;
