e4bb8095e9
- malloc.h breaks actively on FreeBSD for a long time, use stdlib.h as suggested; - treat FreeBSD uniformly with other BSD systems.
28 lines
788 B
Text
28 lines
788 B
Text
$NetBSD: patch-bk,v 1.2 2014/03/25 23:06:07 asau 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(__FreeBSD__) || 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
|
|
}
|
|
|
|
/**
|