From beefec3326c5e21a3a4dadf0e354b12f57766474 Mon Sep 17 00:00:00 2001 From: Cedric Sodhi Date: Fri, 9 Nov 2018 20:31:11 +0100 Subject: Tell Mesa not to attempt X11 headers If no X11 related things are being built, tell Mesa's eglplatform.h not to attempt inclusion of associated X11 header. --- include/wlr/render/egl.h | 6 ++++++ include/wlr/render/interface.h | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'include') diff --git a/include/wlr/render/egl.h b/include/wlr/render/egl.h index 30de3d26..9ba2996a 100644 --- a/include/wlr/render/egl.h +++ b/include/wlr/render/egl.h @@ -9,6 +9,12 @@ #ifndef WLR_RENDER_EGL_H #define WLR_RENDER_EGL_H +#include + +#if !(defined(WLR_HAS_X11_BACKEND) || defined(WLR_HAS_WAYLAND)) +#define MESA_EGL_NO_X11_HEADERS +#endif + #include #include #include diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h index 6b80a077..9500bced 100644 --- a/include/wlr/render/interface.h +++ b/include/wlr/render/interface.h @@ -9,6 +9,12 @@ #ifndef WLR_RENDER_INTERFACE_H #define WLR_RENDER_INTERFACE_H +#include + +#if !(defined(WLR_HAS_X11_BACKEND) || defined(WLR_HAS_WAYLAND)) +#define MESA_EGL_NO_X11_HEADERS +#endif + #include #include #include -- cgit v1.2.3