$NetBSD: patch-ak,v 1.3 2006/01/08 04:57:55 joerg Exp $

--- plugins/sound_esd/sound_esd.h.orig	2006-06-21 15:08:58.000000000 +0930
+++ plugins/sound_esd/sound_esd.h	2007-09-01 13:46:53.000000000 +0930
@@ -11,12 +11,8 @@
 #include <sys/soundcard.h>
 #endif
 
-#ifdef P_FREEBSD
-#if P_FREEBSD >= 500000
+#if defined(P_FREEBSD) || defined(P_DRAGONFLY)
 #include <sys/soundcard.h>
-#else
-#include <machine/soundcard.h>
-#endif
 #endif
 
 #if defined(P_OPENBSD) || defined(P_NETBSD)
