pkgsrc/audio/mad123/patches/patch-ab
joerg 6140c8857f Add DragonFly support. Make the options more useful by allowing full
selection of output. This adds oss and sun. By default, oss and sun
are now active on all platforms, but DraognFly. Bump the revision
to annotate that.
2005-11-11 18:58:18 +00:00

28 lines
620 B
Text

$NetBSD: patch-ab,v 1.1 2005/11/11 18:58:18 joerg Exp $
--- audio_dev.c.orig 2004-09-22 09:23:43.000000000 +0000
+++ audio_dev.c
@@ -43,6 +43,10 @@
#undef WORDS_BIGENDIAN
#endif
+#ifdef __DragonFly__
+typedef unsigned int nfds_t;
+#endif
+
#define PCM_BUFFSIZE ((sizeof(((struct mad_pcm *)0)->samples) / \
sizeof(mad_fixed_t)) * 2)
struct pcm_data {
@@ -97,8 +101,12 @@ static void audio_convert_dither(unsigne
static const struct audio_dev_backend *audio_dev_backends[] = {
+#ifndef NOSUN
&audio_dev_sun,
+#endif
+#ifndef NOOSS
&audio_dev_pcm,
+#endif
#ifndef NOARTS
&audio_dev_arts,
#endif