mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
NetBSD ships with pollts(2) similar to Linux specific ppoll()
This commit is contained in:
parent
f69776e5b7
commit
1ac7dad84e
1 changed files with 5 additions and 0 deletions
|
|
@ -178,7 +178,12 @@ snd_pcm_sframes_t Alsa_pcmi::pcm_wait (void)
|
||||||
timespec timeout;
|
timespec timeout;
|
||||||
timeout.tv_sec = 1;
|
timeout.tv_sec = 1;
|
||||||
timeout.tv_nsec = 0;
|
timeout.tv_nsec = 0;
|
||||||
|
#if defined(__NetBSD__)
|
||||||
|
r = pollts (_poll_fd, n2, &timeout, NULL);
|
||||||
|
#else
|
||||||
r = ppoll (_poll_fd, n2, &timeout, NULL);
|
r = ppoll (_poll_fd, n2, &timeout, NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue