projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f69776e
)
NetBSD ships with pollts(2) similar to Linux specific ppoll()
author
Kamil Rytarowski
<n54@gmx.com>
Tue, 5 Jul 2016 14:31:53 +0000
(16:31 +0200)
committer
Robin Gareus
<robin@gareus.org>
Tue, 4 Oct 2016 20:17:49 +0000
(22:17 +0200)
libs/backends/alsa/zita-alsa-pcmi.cc
patch
|
blob
|
history
diff --git
a/libs/backends/alsa/zita-alsa-pcmi.cc
b/libs/backends/alsa/zita-alsa-pcmi.cc
index 942e77e63acdadffd99a7715318647dbfa754ed3..88cdb03740d97720b3f1de2b0e2e134b3ea7e42c 100644
(file)
--- a/
libs/backends/alsa/zita-alsa-pcmi.cc
+++ b/
libs/backends/alsa/zita-alsa-pcmi.cc
@@
-178,7
+178,12
@@
snd_pcm_sframes_t Alsa_pcmi::pcm_wait (void)
timespec timeout;
timeout.tv_sec = 1;
timeout.tv_nsec = 0;
+#if defined(__NetBSD__)
+ r = pollts (_poll_fd, n2, &timeout, NULL);
+#else
r = ppoll (_poll_fd, n2, &timeout, NULL);
+#endif
+
if (r < 0)
{