diff --git a/src/pulsecore/rtpoll.c b/src/pulsecore/rtpoll.c index 354c4c0e9..83008266f 100644 --- a/src/pulsecore/rtpoll.c +++ b/src/pulsecore/rtpoll.c @@ -161,8 +161,10 @@ void pa_rtpoll_install(pa_rtpoll *p) { p->installed = 1; #ifdef HAVE_PPOLL +# ifdef __linux__ if (p->dont_use_ppoll) return; +# endif if ((p->rtsig = pa_rtsig_get_for_thread()) < 0) { pa_log_warn("Failed to reserve POSIX realtime signal."); diff --git a/src/tests/rtpoll-test.c b/src/tests/rtpoll-test.c index 3ab992a19..e64937714 100644 --- a/src/tests/rtpoll-test.c +++ b/src/tests/rtpoll-test.c @@ -49,7 +49,9 @@ int main(int argc, char *argv[]) { pa_rtpoll_item *i, *w; struct pollfd *pollfd; +#ifdef SIGRTMIN pa_rtsig_configure(SIGRTMIN+10, SIGRTMAX); +#endif p = pa_rtpoll_new();