NetBSD ships with pollts(2) similar to Linux specific ppoll()
authorKamil Rytarowski <n54@gmx.com>
Tue, 5 Jul 2016 14:31:53 +0000 (16:31 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 4 Oct 2016 20:17:49 +0000 (22:17 +0200)
libs/backends/alsa/zita-alsa-pcmi.cc

index 942e77e63acdadffd99a7715318647dbfa754ed3..88cdb03740d97720b3f1de2b0e2e134b3ea7e42c 100644 (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)
                {