Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/audio/alsa-lib/files/patch-src_async.c
16125 views
1
$NetBSD: patch-bk,v 1.1 2008/12/25 13:18:00 hasso Exp $
2
3
--- src/async.c.orig 2020-02-19 09:35:39 UTC
4
+++ src/async.c
5
@@ -54,6 +54,15 @@ static LIST_HEAD(snd_async_handlers);
6
7
static void snd_async_handler(int signo ATTRIBUTE_UNUSED, siginfo_t *siginfo, void *context ATTRIBUTE_UNUSED)
8
{
9
+#if defined(__DragonFly__) || defined(__FreeBSD__)
10
+ /* XXX XXX XXX */
11
+ struct list_head *i;
12
+ list_for_each(i, &snd_async_handlers) {
13
+ snd_async_handler_t *h = list_entry(i, snd_async_handler_t, glist);
14
+ if (h->callback)
15
+ h->callback(h);
16
+ }
17
+#else
18
int fd;
19
struct list_head *i;
20
//assert(siginfo->si_code == SI_SIGIO);
21
@@ -66,6 +75,7 @@ static void snd_async_handler(int signo ATTRIBUTE_UNUS
22
if (h->fd == fd && h->callback)
23
h->callback(h);
24
}
25
+#endif
26
}
27
28
/**
29
30