From 2480d3daa2e68c791c24178695d123ef7973b818 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 26 Feb 2024 17:33:45 +0100 Subject: [PATCH] (submit/xfuncproto) fix mising includes of Several places using _X_ATTRIBUTE_PRINTF macro from X11/Xfuncproto.h but missing to include it, so it depends on other headers whether it's included by mere accident, which quickly causes trouble if include order changes. Cleaning that up by adding explicit include statements. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/common/xf86.h | 2 ++ pseudoramiX/pseudoramiX.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hw/xfree86/common/xf86.h b/hw/xfree86/common/xf86.h index 48f827069..cc2c74fd6 100644 --- a/hw/xfree86/common/xf86.h +++ b/hw/xfree86/common/xf86.h @@ -41,6 +41,8 @@ #include #endif +#include + #include "xf86str.h" #include "xf86Opt.h" #include diff --git a/pseudoramiX/pseudoramiX.c b/pseudoramiX/pseudoramiX.c index 835e6a4b3..e5d68222f 100644 --- a/pseudoramiX/pseudoramiX.c +++ b/pseudoramiX/pseudoramiX.c @@ -36,6 +36,8 @@ #include #include +#include +#include #include "miext/extinit_priv.h" @@ -44,7 +46,6 @@ #include "nonsdk_extinit.h" #include "dixstruct.h" #include "window.h" -#include #include "globals.h" #define TRACE LogMessageVerb(X_NONE, 10, "TRACE " __FILE__ ":%s", __FUNCTION__)