mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	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:
		
							parent
							
								
									1e74aa977e
								
							
						
					
					
						commit
						9774cc7965
					
				
					 2 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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.");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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();
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue