From 0617f6075b6a867c90912ccaf9de2200d06a5419 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 10 Aug 2025 09:43:33 -0700 Subject: [PATCH] xf86bigfont: fix -Wimplicit-function-declaration error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Build breaks with gcc 14 & later when xf86bigfont is enabled: ../Xext/xf86bigfont.c: In function ‘XFree86BigfontExtensionInit’: ../Xext/xf86bigfont.c:709:28: error: implicit declaration of function ‘xfont2_allocate_font_private_index’; did you mean ‘AllocateFontPrivateIndex’? [-Wimplicit-function-declaration] 709 | FontShmdescIndex = xfont2_allocate_font_private_index(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | AllocateFontPrivateIndex Fixes: 05a793f5b ("dix: Switch to the libXfont2 API (v2)") Signed-off-by: Alan Coopersmith Part-of: --- Xext/xf86bigfont.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Xext/xf86bigfont.c b/Xext/xf86bigfont.c index 13ac685ed..94efe0d58 100644 --- a/Xext/xf86bigfont.c +++ b/Xext/xf86bigfont.c @@ -57,6 +57,8 @@ #include #include #include +#include +#include #include "misc.h" #include "os.h"