[pulseaudio-commits] r2095 - in /trunk/src: pulsecore/rtpoll.c tests/rtpoll-test.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Fri Jan 4 06:52:45 PST 2008
Author: sjoerd
Date: Fri Jan 4 15:52:44 2008
New Revision: 2095
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2095&root=pulseaudio&view=rev
Log:
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
Modified:
trunk/src/pulsecore/rtpoll.c
trunk/src/tests/rtpoll-test.c
Modified: trunk/src/pulsecore/rtpoll.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/rtpoll.c?rev=2095&root=pulseaudio&r1=2094&r2=2095&view=diff
==============================================================================
--- trunk/src/pulsecore/rtpoll.c (original)
+++ trunk/src/pulsecore/rtpoll.c Fri Jan 4 15:52:44 2008
@@ -161,8 +161,10 @@
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.");
Modified: trunk/src/tests/rtpoll-test.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/tests/rtpoll-test.c?rev=2095&root=pulseaudio&r1=2094&r2=2095&view=diff
==============================================================================
--- trunk/src/tests/rtpoll-test.c (original)
+++ trunk/src/tests/rtpoll-test.c Fri Jan 4 15:52:44 2008
@@ -49,7 +49,9 @@
pa_rtpoll_item *i, *w;
struct pollfd *pollfd;
+#ifdef SIGRTMIN
pa_rtsig_configure(SIGRTMIN+10, SIGRTMAX);
+#endif
p = pa_rtpoll_new();
More information about the pulseaudio-commits
mailing list