aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-04-04 14:21:05 -0400
committerGitHub <noreply@github.com>2018-04-04 14:21:05 -0400
commitcdb025a74bb7b36a5cee6fffa6eb0c414af8be71 (patch)
tree27d0c9444ba6164cb04d57b672471451448a1c4e /backend
parent5fea9f1dd6318f09e870077efaab164b49186e0d (diff)
parent68ad7e5092c1fb64fb26fa34bb6368fcd558f736 (diff)
Merge pull request #821 from turlando/fix/build-without-x11
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);