$NetBSD$

--- xw_snd.cpp.orig	2000-03-22 16:01:00.000000000 +0000
+++ xw_snd.cpp
@@ -22,8 +22,10 @@
 #include <fcntl.h>
 #include <sys/ioctl.h>
 #include <sys/time.h>
-#ifdef __FreeBSD__
-#include <machine/soundcard.h>
+#if defined(__FreeBSD__) || defined(__DragonFly__)
+#include <sys/soundcard.h>
+#elif defined(__NetBSD__) || defined(__OpenBSD__)
+#include <soundcard.h>
 #else
 #include <linux/soundcard.h>
 #endif
