summaryrefslogtreecommitdiff
path: root/audio/mad123/patches/patch-ab
blob: 890ac97f398e061f38ae8af5c694bf182eb304ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$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