mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	media-session: ifdef Linux-specific file option
This commit is contained in:
		
							parent
							
								
									fba8cd9f56
								
							
						
					
					
						commit
						cc0386e1c5
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1793,6 +1793,10 @@ static int state_dir(struct sm_media_session *sess)
 | 
			
		|||
				"%s/.config/pipewire-media-session/", home_dir);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
#ifndef O_PATH
 | 
			
		||||
#define O_PATH 0
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
	if ((res = open(impl->state_dir, O_CLOEXEC | O_DIRECTORY | O_PATH)) < 0) {
 | 
			
		||||
		if (errno == ENOENT) {
 | 
			
		||||
			pw_log_info("creating state directory %s", impl->state_dir);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue