$NetBSD: patch-an,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $ --- src/pcm/pcm_dshare.c.orig 2008-10-29 08:42:10.000000000 -0400 +++ src/pcm/pcm_dshare.c @@ -45,6 +45,10 @@ #include #include "pcm_direct.h" +#ifndef EBADFD +#define EBADFD EBADF +#endif + #ifndef PIC /* entry for static linking */ const char *_snd_module_pcm_dshare = "";