From a0b52a0dff1e69f85e0095c58e3bda0b588caf45 Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Tue, 27 Mar 2018 09:19:44 +0200 Subject: Fix x11 backend Need to include wlr/config.h before using the various WLR_HAS_xxx defines --- backend/backend.c | 5 ++++- include/xwayland/xwm.h | 1 + rootston/input.c | 1 + rootston/output.c | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/backend/backend.c b/backend/backend.c index 02b0b9af..52344dac 100644 --- a/backend/backend.c +++ b/backend/backend.c @@ -11,10 +11,13 @@ #include #include #include +#include +#include + +/* WLR_HAS_X11_BACKEND needs to be after wlr/config.h */ #ifdef WLR_HAS_X11_BACKEND #include #endif -#include void wlr_backend_init(struct wlr_backend *backend, const struct wlr_backend_impl *impl) { diff --git a/include/xwayland/xwm.h b/include/xwayland/xwm.h index 4b15cc84..9e21ea3a 100644 --- a/include/xwayland/xwm.h +++ b/include/xwayland/xwm.h @@ -2,6 +2,7 @@ #define XWAYLAND_XWM_H #include +#include #include #include diff --git a/rootston/input.c b/rootston/input.c index 962be9fa..3e1b06fb 100644 --- a/rootston/input.c +++ b/rootston/input.c @@ -2,6 +2,7 @@ #include #include #include +#include #include #include #include diff --git a/rootston/output.c b/rootston/output.c index 8d6444d6..52ece54d 100644 --- a/rootston/output.c +++ b/rootston/output.c @@ -3,6 +3,7 @@ #include #include #include +#include #include #include #include -- cgit v1.2.3