mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-04 00:51:42 +01:00 
			
		
		
		
	macOS and other BSD-like systems have <sys/queue.h> header. Fall back to it if bsd/sys/queue.h (provided on Linux by libbsd) is not found.
		
			
				
	
	
		
			8 lines
		
	
	
		
			227 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			227 B
		
	
	
	
		
			C
		
	
	
	
	
	
#if __has_include(<bsd/sys/queue.h>)
 | 
						|
/* On Linux, try using sys/queue.h provided by libbsd-dev */
 | 
						|
#include <bsd/sys/queue.h>
 | 
						|
#else
 | 
						|
/* Fall back to sys/queue.h which may exist e.g. on macOS */
 | 
						|
#include_next <sys/queue.h>
 | 
						|
#endif
 |