mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	filter-chain: use right lv2 include path for some older distros also
3f6fe392 uses headers from /usr/include/lv2/atom/. but this leads compilation
    failure for some distros (i.e. ubuntu 18.04) as they have some
    different location for these headers. One can find these headers
    at /usr/include/lv2/lv2plug.in/ns/ext/atom/ (for ubuntu 18.04)
    instead /usr/include/lv2/atom/. So guard them with __has_include.
    and mention other possibilities.
    Fixes #2670
			
			
This commit is contained in:
		
							parent
							
								
									f957435586
								
							
						
					
					
						commit
						0079a1d5bc
					
				
					 1 changed files with 21 additions and 5 deletions
				
			
		| 
						 | 
					@ -35,12 +35,28 @@
 | 
				
			||||||
#include <pipewire/array.h>
 | 
					#include <pipewire/array.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <lilv/lilv.h>
 | 
					#include <lilv/lilv.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if defined __has_include
 | 
				
			||||||
 | 
					#	if __has_include (<lv2/atom/atom.h>)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		#include <lv2/atom/atom.h>
 | 
							#include <lv2/atom/atom.h>
 | 
				
			||||||
		#include <lv2/buf-size/buf-size.h>
 | 
							#include <lv2/buf-size/buf-size.h>
 | 
				
			||||||
		#include <lv2/worker/worker.h>
 | 
							#include <lv2/worker/worker.h>
 | 
				
			||||||
		#include <lv2/options/options.h>
 | 
							#include <lv2/options/options.h>
 | 
				
			||||||
		#include <lv2/parameters/parameters.h>
 | 
							#include <lv2/parameters/parameters.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#	else
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							#include <lv2/lv2plug.in/ns/ext/atom/atom.h>
 | 
				
			||||||
 | 
							#include <lv2/lv2plug.in/ns/ext/buf-size/buf-size.h>
 | 
				
			||||||
 | 
							#include <lv2/lv2plug.in/ns/ext/worker/worker.h>
 | 
				
			||||||
 | 
							#include <lv2/lv2plug.in/ns/ext/options/options.h>
 | 
				
			||||||
 | 
							#include <lv2/lv2plug.in/ns/ext/parameters/parameters.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#	endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "plugin.h"
 | 
					#include "plugin.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static struct context *_context;
 | 
					static struct context *_context;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue