From 1ac7dad84ec3c4e539d9cb860da0e463fd6b838f Mon Sep 17 00:00:00 2001 From: Kamil Rytarowski Date: Tue, 5 Jul 2016 16:31:53 +0200 Subject: [PATCH] NetBSD ships with pollts(2) similar to Linux specific ppoll() --- libs/backends/alsa/zita-alsa-pcmi.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/backends/alsa/zita-alsa-pcmi.cc b/libs/backends/alsa/zita-alsa-pcmi.cc index 942e77e63a..88cdb03740 100644 --- 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) {