aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorTancredi Orlando <tancredi.orlando@gmail.com>2018-04-04 19:59:47 +0200
committerTancredi Orlando <tancredi.orlando@gmail.com>2018-04-04 19:59:47 +0200
commit68ad7e5092c1fb64fb26fa34bb6368fcd558f736 (patch)
tree27d0c9444ba6164cb04d57b672471451448a1c4e /backend
parent5fea9f1dd6318f09e870077efaab164b49186e0d (diff)
Add ifdef to build without X11
Diffstat (limited to 'backend')
-rw-r--r--backend/backend.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/backend.c b/backend/backend.c
index 23e212b6..b583855e 100644
--- a/backend/backend.c
+++ b/backend/backend.c
@@ -91,6 +91,7 @@ static struct wlr_backend *attempt_wl_backend(struct wl_display *display) {
return backend;
}
+#ifdef WLR_HAS_X11_BACKEND
static struct wlr_backend *attempt_x11_backend(struct wl_display *display,
const char *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;
}
+#endif
struct wlr_backend *wlr_backend_autocreate(struct wl_display *display) {
struct wlr_backend *backend = wlr_multi_backend_create(display);