$NetBSD$

--- plugins/sound_esd/sound_esd.h.orig	2006-01-08 03:15:21.000000000 +0000
+++ plugins/sound_esd/sound_esd.h
@@ -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)
