From 646831cda260140eb83f6f3a3f2ad6d69cc9f3a5 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 511ab687b..dd9e38619 100644 --- a/hw/xnest/Font.c +++ b/hw/xnest/Font.c @@ -16,12 +16,14 @@ is" without express or implied warranty. #include #endif +#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 529a4ee5a..a32d5ac90 100644 --- a/hw/xnest/Init.c +++ b/hw/xnest/Init.c @@ -16,10 +16,12 @@ is" without express or implied warranty. #include #endif +#include #include #include #include #include +#include #include "dix/screenint_priv.h" #include "os/ddx_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)