NetBSD ships with pollts(2) similar to Linux specific ppoll()

This commit is contained in:
Kamil Rytarowski 2016-07-05 16:31:53 +02:00 committed by Robin Gareus
parent f69776e5b7
commit 1ac7dad84e

View File

@ -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)
{