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
This commit is contained in:
Sjoerd Simons 2008-01-04 14:52:44 +00:00
parent 1e74aa977e
commit 9774cc7965
2 changed files with 4 additions and 0 deletions

View file

@ -161,8 +161,10 @@ void pa_rtpoll_install(pa_rtpoll *p) {
p->installed = 1; p->installed = 1;
#ifdef HAVE_PPOLL #ifdef HAVE_PPOLL
# ifdef __linux__
if (p->dont_use_ppoll) if (p->dont_use_ppoll)
return; return;
# endif
if ((p->rtsig = pa_rtsig_get_for_thread()) < 0) { if ((p->rtsig = pa_rtsig_get_for_thread()) < 0) {
pa_log_warn("Failed to reserve POSIX realtime signal."); pa_log_warn("Failed to reserve POSIX realtime signal.");

View file

@ -49,7 +49,9 @@ int main(int argc, char *argv[]) {
pa_rtpoll_item *i, *w; pa_rtpoll_item *i, *w;
struct pollfd *pollfd; struct pollfd *pollfd;
#ifdef SIGRTMIN
pa_rtsig_configure(SIGRTMIN+10, SIGRTMAX); pa_rtsig_configure(SIGRTMIN+10, SIGRTMAX);
#endif
p = pa_rtpoll_new(); p = pa_rtpoll_new();