diff options
author | Sjoerd Simons <sjoerd@debian.org> | 2008-01-04 14:52:44 +0000 |
---|---|---|
committer | Sjoerd Simons <sjoerd@debian.org> | 2008-01-04 14:52:44 +0000 |
commit | 9774cc79651d96df77f13338464d3e2b35d6dabc (patch) | |
tree | 33f51a6b6c3d413ccfe4f6199d28785595a21e74 | |
parent | 1e74aa977ec0d5c6c61a8a38872eb35cd59d7899 (diff) |
Add forgotted #ifdef __linux__ and only use SIGRTMIN if it is defined. Fixes
compilation on non-linux platforms like GNU/kFreeBSD. Thanks to Aurelien Jarno
for the patch
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2095 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r-- | src/pulsecore/rtpoll.c | 2 | ||||
-rw-r--r-- | src/tests/rtpoll-test.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/pulsecore/rtpoll.c b/src/pulsecore/rtpoll.c index 354c4c0e..83008266 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 3ab992a1..e6493771 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(); |