Add forgotted #ifdef __linux__ and only use SIGRTMIN if it is defined. Fixes
authorSjoerd Simons <sjoerd@debian.org>
Fri, 4 Jan 2008 14:52:44 +0000 (14:52 +0000)
committerSjoerd Simons <sjoerd@debian.org>
Fri, 4 Jan 2008 14:52:44 +0000 (14:52 +0000)
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

src/pulsecore/rtpoll.c
src/tests/rtpoll-test.c

index 354c4c0..8300826 100644 (file)
@@ -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.");
index 3ab992a..e649377 100644 (file)
@@ -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();