From 194a55ca7965343c1e1b2e0844e476b6aaab5fcc Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Sat, 28 Nov 2026 16:55:13 +0100 Subject: [PATCH] Common (Settings): fixes building with dconf but without gio `GVariantGetters` and `getGVariantValue()` are used by both the GSettings and the dconf code, but were defined inside the `FF_HAVE_GIO` block. Building with `-DENABLE_GIO=OFF` while dconf stayed enabled failed with: settings.c:133:5: error: unknown type name 'GVariantGetters' Define them whenever either of the two is enabled. --- CHANGELOG.md | 5 +++++ src/common/impl/settings.c | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 99b68aa64d..b2bfed4380 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# Unreleased + +Bugfixes: +* Fixed building with dconf enabled but gio disabled (`-DENABLE_GIO=OFF`). (General) + # 2.72.0 Changes: diff --git a/src/common/impl/settings.c b/src/common/impl/settings.c index 0f45e51b3b..b1332d6a75 100644 --- a/src/common/impl/settings.c +++ b/src/common/impl/settings.c @@ -7,8 +7,8 @@ #include -#ifdef FF_HAVE_GIO - #include +#if defined(FF_HAVE_GIO) || defined(FF_HAVE_DCONF) + #include typedef struct GVariantGetters { FF_LIBRARY_SYMBOL(g_variant_dup_string) @@ -38,6 +38,10 @@ static FFvariant getGVariantValue(GVariant* variant, FFvarianttype type, const G return result; } +#endif // FF_HAVE_GIO || FF_HAVE_DCONF + +#ifdef FF_HAVE_GIO + #include typedef struct GSettingsData { FF_LIBRARY_SYMBOL(g_settings_schema_source_lookup)