From 0676cee63a6486d4987aa6c4c8ba309eccfccbb0 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 19 Jul 2024 13:38:58 +0200 Subject: [PATCH] include: dixfontstr.h: drop silent dependency on libxfont2 This header includes libxfont2.h, but the dependency isn't stated anywhere, causing some drivers to FTBS (when libxont2.h is in non-standard location). Since this header doesn't seem to need including libxfont2.h at all, just stop including it, instead of adding yet another dependency to server SDK. Signed-off-by: Enrico Weigelt, metux IT consult Part-of: --- glamor/glamor_font.c | 6 ++++++ hw/xnest/Font.c | 2 ++ hw/xnest/Init.c | 2 ++ include/dixfontstr.h | 1 - 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/glamor/glamor_font.c b/glamor/glamor_font.c index c60fa787b..9b26180e9 100644 --- a/glamor/glamor_font.c +++ b/glamor/glamor_font.c @@ -20,6 +20,12 @@ * OF THIS SOFTWARE. */ +#include + +#include +#include // libxfont2.h missed to include that +#include + #include "glamor_priv.h" #include "glamor_font.h" #include diff --git a/hw/xnest/Font.c b/hw/xnest/Font.c index 3b8bfb87f..cca393565 100644 --- a/hw/xnest/Font.c +++ b/hw/xnest/Font.c @@ -13,12 +13,14 @@ is" without express or implied warranty. */ #include +#include #include #include #include #include #include #include +#include #include "misc.h" #include "regionstr.h" diff --git a/hw/xnest/Init.c b/hw/xnest/Init.c index 7bf68e415..ccd663903 100644 --- a/hw/xnest/Init.c +++ b/hw/xnest/Init.c @@ -13,10 +13,12 @@ is" without express or implied warranty. */ #include +#include #include #include #include #include +#include #include "dix/screenint_priv.h" #include "miext/extinit_priv.h" diff --git a/include/dixfontstr.h b/include/dixfontstr.h index eae1a3b58..dbf991d35 100644 --- a/include/dixfontstr.h +++ b/include/dixfontstr.h @@ -27,7 +27,6 @@ SOFTWARE. #include "servermd.h" #include "dixfont.h" #include -#include #include /* for xQueryFontReply */ #define FONTCHARSET(font) (font)