From 95b22619e08adc3d407925c5eb4758dd9164c8fa Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sun, 21 Apr 2019 00:35:57 +0000 Subject: Fix missing headers when building without X11 The deleted includes are redundant, because other headers will include the necessary files. Additionally, they cause build failures, because including EGL/egl.h or EGL/eglext.h directly, instead of through wlr/render/egl.h or wlr/render/interface.h, will mean that MESA_EGL_NO_X11_HEADERS will not have been defined, and so the EGL headers will attempt to pull in unnecessary X11 headers that may not exist on the system. For the headers produced by glgen.sh, the includes couldn't simply be deleted, because no other header would include the EGL headers. Neither wlr/render/egl.h or wlr/render/interface.h felt appropriate to include, so I opted instead to copy the MESA_EGL_NO_X11_HEADERS definition before the EGL includes. --- backend/drm/drm.c | 2 -- backend/drm/renderer.c | 2 -- backend/headless/output.c | 2 -- backend/wayland/backend.c | 2 -- 4 files changed, 8 deletions(-) (limited to 'backend') diff --git a/backend/drm/drm.c b/backend/drm/drm.c index f179f835..f86f63b8 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -2,8 +2,6 @@ #include #include #include -#include -#include #include #include #include diff --git a/backend/drm/renderer.c b/backend/drm/renderer.c index 72cfd430..1771e725 100644 --- a/backend/drm/renderer.c +++ b/backend/drm/renderer.c @@ -1,6 +1,4 @@ #include -#include -#include #include #include #include diff --git a/backend/headless/output.c b/backend/headless/output.c index b3b41d46..6d3b6f96 100644 --- a/backend/headless/output.c +++ b/backend/headless/output.c @@ -1,6 +1,4 @@ #include -#include -#include #include #include #include diff --git a/backend/wayland/backend.c b/backend/wayland/backend.c index 2a937de7..7c8bb4e0 100644 --- a/backend/wayland/backend.c +++ b/backend/wayland/backend.c @@ -5,8 +5,6 @@ #include -#include -#include #include #include -- cgit v1.2.3