xwayland: avoid Linux-only headers on non-Linux
hw/xwayland/xwayland-glamor-gbm.c:38:10: fatal error: 'linux/dma-buf.h' file not found
   38 | #include <linux/dma-buf.h>
      |          ^~~~~~~~~~~~~~~~~
Fixes: 3df236a3d5 ("xwayland: add functions to import and export dma-buf implicit fences")
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1481>
			
			
This commit is contained in:
		
							parent
							
								
									c7d56b0e29
								
							
						
					
					
						commit
						f0748b05dc
					
				| 
						 | 
				
			
			@ -35,9 +35,11 @@
 | 
			
		|||
#include <sys/stat.h>
 | 
			
		||||
#include <xf86drm.h>
 | 
			
		||||
#include <drm_fourcc.h>
 | 
			
		||||
#if defined(__linux__)
 | 
			
		||||
#include <linux/dma-buf.h>
 | 
			
		||||
#include <linux/sync_file.h>
 | 
			
		||||
#include <sys/ioctl.h>
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#define MESA_EGL_NO_X11_HEADERS
 | 
			
		||||
#define EGL_NO_X11
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue