From 8562a23fc6a382367351a1471d8585279d12605a Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sat, 29 Oct 2022 08:38:09 +0800 Subject: [PATCH] Include Cairo FreeType header when available * src/xsettings.c: Include cairo-ft.h if CAIRO_HAS_FT_FONT. (bug#58830) --- src/xsettings.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/xsettings.c b/src/xsettings.c index c4c70ad8460..15e7ff54995 100644 --- a/src/xsettings.c +++ b/src/xsettings.c @@ -54,13 +54,14 @@ typedef unsigned int CARD32; #include #endif -#if defined USE_CAIRO || defined HAVE_XFT #ifdef USE_CAIRO #include -#include -#else /* HAVE_XFT */ +#elif defined HAVE_XFT #include #endif + +#if defined USE_CAIRO && defined CAIRO_HAS_FT_FONT +#include #endif static char *current_mono_font; -- 2.39.5