View | Details | Raw Unified | Return to bug 169770
Collapse All | Expand All

(-)audio/alsa-lib/files/patch-alsa-lib (-4 / +14 lines)
Lines 152-164 Link Here
152
 #if __BYTE_ORDER == __LITTLE_ENDIAN
152
 #if __BYTE_ORDER == __LITTLE_ENDIAN
153
 #define __cpu_to_le32(x) (x)
153
 #define __cpu_to_le32(x) (x)
154
 #define __cpu_to_be32(x) bswap_32(x)
154
 #define __cpu_to_be32(x) bswap_32(x)
155
--- src/async.c.orig	2009-09-09 20:34:54.000000000 +0800
155
$NetBSD: patch-bk,v 1.1 2008/12/25 13:18:00 hasso Exp $
156
+++ src/async.c	2009-09-15 00:49:34.000000000 +0800
156
157
@@ -51,6 +51,7 @@
157
--- src/async.c.orig	2008-12-25 08:18:22 +0200
158
+++ src/async.c	2008-12-25 08:20:39 +0200
159
@@ -51,6 +51,15 @@ static LIST_HEAD(snd_async_handlers);
158
 
160
 
159
 static void snd_async_handler(int signo ATTRIBUTE_UNUSED, siginfo_t *siginfo, void *context ATTRIBUTE_UNUSED)
161
 static void snd_async_handler(int signo ATTRIBUTE_UNUSED, siginfo_t *siginfo, void *context ATTRIBUTE_UNUSED)
160
 {
162
 {
161
+#ifndef __FreeBSD__
163
+#if defined(__DragonFly__) || defined(__FreeBSD__)
164
+	/* XXX XXX XXX */
165
+	struct list_head *i;
166
+	list_for_each(i, &snd_async_handlers) {
167
+		snd_async_handler_t *h = list_entry(i, snd_async_handler_t, glist);
168
+		if (h->callback)
169
+			h->callback(h);
170
+	}
171
+#else
162
 	int fd;
172
 	int fd;
163
 	struct list_head *i;
173
 	struct list_head *i;
164
 	//assert(siginfo->si_code == SI_SIGIO);
174
 	//assert(siginfo->si_code == SI_SIGIO);

Return to bug 169770