28 lines
765 B
Text
28 lines
765 B
Text
$NetBSD: patch-bk,v 1.1 2008/12/25 13:18:00 hasso Exp $
|
|
|
|
--- src/async.c.orig 2008-12-25 08:18:22 +0200
|
|
+++ src/async.c 2008-12-25 08:20:39 +0200
|
|
@@ -51,6 +51,15 @@ static LIST_HEAD(snd_async_handlers);
|
|
|
|
static void snd_async_handler(int signo ATTRIBUTE_UNUSED, siginfo_t *siginfo, void *context ATTRIBUTE_UNUSED)
|
|
{
|
|
+#if defined(__DragonFly__)
|
|
+ /* XXX XXX XXX */
|
|
+ struct list_head *i;
|
|
+ list_for_each(i, &snd_async_handlers) {
|
|
+ snd_async_handler_t *h = list_entry(i, snd_async_handler_t, glist);
|
|
+ if (h->callback)
|
|
+ h->callback(h);
|
|
+ }
|
|
+#else
|
|
int fd;
|
|
struct list_head *i;
|
|
//assert(siginfo->si_code == SI_SIGIO);
|
|
@@ -60,6 +69,7 @@ static void snd_async_handler(int signo
|
|
if (h->fd == fd && h->callback)
|
|
h->callback(h);
|
|
}
|
|
+#endif
|
|
}
|
|
|
|
/**
|