NetBSD ships with pollts(2) similar to Linux specific ppoll()
This commit is contained in:
parent
f69776e5b7
commit
1ac7dad84e
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user