mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	Add a stub implementation for sched_getcpu, as this function isn't present on
FreeBSD.
This commit is contained in:
		
							parent
							
								
									da7eefd60e
								
							
						
					
					
						commit
						9ab4e39704
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -11,6 +11,10 @@
 | 
			
		|||
#define ARRAY_SIZE 63
 | 
			
		||||
#define MAX_VALUE 0x10000
 | 
			
		||||
 | 
			
		||||
#ifdef __FreeBSD__
 | 
			
		||||
static int sched_getcpu(void) { return -1; };
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
static struct spa_ringbuffer rb;
 | 
			
		||||
static uint32_t size;
 | 
			
		||||
static void *data;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue