$NetBSD: patch-ay,v 1.2 2008/12/25 13:18:00 hasso Exp $ --- src/pcm/pcm_null.c.orig 2008-10-29 08:42:10.000000000 -0400 +++ src/pcm/pcm_null.c @@ -26,12 +26,18 @@ * */ +#if !defined(__NetBSD__) && !defined(__DragonFly__) #include +#endif #include #include #include "pcm_local.h" #include "pcm_plugin.h" +#ifndef EBADFD +#define EBADFD EBADF +#endif + #ifndef PIC /* entry for static linking */ const char *_snd_module_pcm_null = "";