aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lightdm/musl-language.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-06-02 19:02:10 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-06-02 19:02:10 +0000
commit9b83bc7c86649236cd4f3007037023c7d23063bf (patch)
tree9a1fab8300b777b320900c7b3911ecdb457c6439 /testing/lightdm/musl-language.patch
parent653c0a58d564548fe8ba49fc50ffc85a08553576 (diff)
downloadaports-9b83bc7c86649236cd4f3007037023c7d23063bf.tar.bz2
aports-9b83bc7c86649236cd4f3007037023c7d23063bf.tar.xz
testing/lightdm: upgrade to 1.10.1
Diffstat (limited to 'testing/lightdm/musl-language.patch')
-rw-r--r--testing/lightdm/musl-language.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/lightdm/musl-language.patch b/testing/lightdm/musl-language.patch
new file mode 100644
index 0000000000..8908bbc511
--- /dev/null
+++ b/testing/lightdm/musl-language.patch
@@ -0,0 +1,34 @@
+--- ./liblightdm-gobject/language.c.orig
++++ ./liblightdm-gobject/language.c
+@@ -224,6 +224,7 @@
+
+ if (!priv->name)
+ {
++#if HAVE_LC_IDENTIFICATION
+ gchar *locale = get_locale_name (priv->code);
+ if (locale)
+ {
+@@ -238,6 +239,7 @@
+ setlocale (LC_ALL, current);
+ }
+ if (!priv->name)
++#endif
+ {
+ gchar **tokens = g_strsplit_set (priv->code, "_.@", 2);
+ priv->name = g_strdup (tokens[0]);
+@@ -267,6 +269,7 @@
+
+ if (!priv->territory && strchr (priv->code, '_'))
+ {
++#if HAVE_LC_IDENTITIFICATION
+ gchar *locale = get_locale_name (priv->code);
+ if (locale)
+ {
+@@ -281,6 +284,7 @@
+ setlocale (LC_ALL, current);
+ }
+ if (!priv->territory)
++#endif
+ {
+ gchar **tokens = g_strsplit_set (priv->code, "_.@", 3);
+ priv->territory = g_strdup (tokens[1]);