aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lightdm/musl-language.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/lightdm/musl-language.patch')
-rw-r--r--testing/lightdm/musl-language.patch34
1 files changed, 18 insertions, 16 deletions
diff --git a/testing/lightdm/musl-language.patch b/testing/lightdm/musl-language.patch
index 8908bbc511..442e7fb9d5 100644
--- a/testing/lightdm/musl-language.patch
+++ b/testing/lightdm/musl-language.patch
@@ -1,34 +1,36 @@
---- ./liblightdm-gobject/language.c.orig
-+++ ./liblightdm-gobject/language.c
-@@ -224,6 +224,7 @@
+--- a/liblightdm-gobject/language.c
++++ b/liblightdm-gobject/language.c
+@@ -210,6 +210,7 @@
if (!priv->name)
{
-+#if HAVE_LC_IDENTIFICATION
- gchar *locale = get_locale_name (priv->code);
++ #if HAVE_LC_IDENTIFICATION
+ g_autofree gchar *locale = get_locale_name (priv->code);
if (locale)
{
-@@ -238,6 +239,7 @@
+@@ -223,6 +224,8 @@
+
setlocale (LC_ALL, current);
}
++ #endif
++
if (!priv->name)
-+#endif
{
- gchar **tokens = g_strsplit_set (priv->code, "_.@", 2);
- priv->name = g_strdup (tokens[0]);
-@@ -267,6 +269,7 @@
+ g_auto(GStrv) tokens = g_strsplit_set (priv->code, "_.@", 2);
+@@ -250,6 +253,7 @@
if (!priv->territory && strchr (priv->code, '_'))
{
-+#if HAVE_LC_IDENTITIFICATION
- gchar *locale = get_locale_name (priv->code);
++ #if HAVE_LC_IDENTITIFICATION
+ g_autofree gchar *locale = get_locale_name (priv->code);
if (locale)
{
-@@ -281,6 +284,7 @@
+@@ -263,6 +267,8 @@
+
setlocale (LC_ALL, current);
}
++ #endif
++
if (!priv->territory)
-+#endif
{
- gchar **tokens = g_strsplit_set (priv->code, "_.@", 3);
- priv->territory = g_strdup (tokens[1]);
+ g_auto(GStrv) tokens = g_strsplit_set (priv->code, "_.@", 3);