From 223c7ac40d605327e3180794b8607e2ec8d0032b Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 22 Apr 2025 20:08:55 +0200 Subject: [PATCH] exa: fix missing include of dix-config.h This header needs to be included first, otherwise things can easily get really messed up. The current code only works by accident, because some other header already including it early enough - but a subtle change in include order can easy break it. Thus, always make sure the header is really included first. Signed-off-by: Enrico Weigelt, metux IT consult --- exa/exa_offscreen.c | 1 + exa/exa_unaccel.c | 1 + 2 files changed, 2 insertions(+) diff --git a/exa/exa_offscreen.c b/exa/exa_offscreen.c index 3a29732b8..6c6a1329e 100644 --- a/exa/exa_offscreen.c +++ b/exa/exa_offscreen.c @@ -25,6 +25,7 @@ * When allocating, the contiguous block of areas with the minimum eviction * cost is found and evicted in order to make room for the new allocation. */ +#include #include "exa_priv.h" diff --git a/exa/exa_unaccel.c b/exa/exa_unaccel.c index ed1401a98..5d836a88f 100644 --- a/exa/exa_unaccel.c +++ b/exa/exa_unaccel.c @@ -20,6 +20,7 @@ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THIS SOFTWARE. */ +#include #include "exa_priv.h"