mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	Fix rt-module.c build on FreeBSD.
This commit is contained in:
		
							parent
							
								
									a83d3e56c6
								
							
						
					
					
						commit
						91250f8012
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -574,6 +574,7 @@ static bool check_realtime_privileges(struct impl *impl)
 | 
			
		|||
			return false;
 | 
			
		||||
		}
 | 
			
		||||
		if (try == 2) {
 | 
			
		||||
#ifdef RLIMIT_RTPRIO
 | 
			
		||||
			struct rlimit rlim;
 | 
			
		||||
			/* second try, try to clamp to RLIMIT_RTPRIO */
 | 
			
		||||
			if (getrlimit(RLIMIT_RTPRIO, &rlim) == 0 && max > (int)rlim.rlim_max) {
 | 
			
		||||
| 
						 | 
				
			
			@ -581,6 +582,7 @@ static bool check_realtime_privileges(struct impl *impl)
 | 
			
		|||
				max = (int)rlim.rlim_max;
 | 
			
		||||
			}
 | 
			
		||||
			else
 | 
			
		||||
#endif
 | 
			
		||||
				break;
 | 
			
		||||
		}
 | 
			
		||||
		if (max < DEFAULT_RT_PRIO_MIN) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue