mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Merge pull request #821 from turlando/fix/build-without-x11
Add ifdef to build without X11
This commit is contained in:
		
						commit
						cdb025a74b
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -91,6 +91,7 @@ static struct wlr_backend *attempt_wl_backend(struct wl_display *display) {
 | 
				
			||||||
	return backend;
 | 
						return backend;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef WLR_HAS_X11_BACKEND
 | 
				
			||||||
static struct wlr_backend *attempt_x11_backend(struct wl_display *display,
 | 
					static struct wlr_backend *attempt_x11_backend(struct wl_display *display,
 | 
				
			||||||
		const char *x11_display) {
 | 
							const char *x11_display) {
 | 
				
			||||||
	struct wlr_backend *backend = wlr_x11_backend_create(display, x11_display);
 | 
						struct wlr_backend *backend = wlr_x11_backend_create(display, x11_display);
 | 
				
			||||||
| 
						 | 
					@ -105,6 +106,7 @@ static struct wlr_backend *attempt_x11_backend(struct wl_display *display,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return backend;
 | 
						return backend;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct wlr_backend *wlr_backend_autocreate(struct wl_display *display) {
 | 
					struct wlr_backend *wlr_backend_autocreate(struct wl_display *display) {
 | 
				
			||||||
	struct wlr_backend *backend = wlr_multi_backend_create(display);
 | 
						struct wlr_backend *backend = wlr_multi_backend_create(display);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue