dafa79c462b94f6eee2720effc806732c5c0b838
[openwrt.git] / package / libs / gettext-full / patches / 005-uclibc-0.9.30-compat.patch
1 --- a/gettext-runtime/intl/localename.c
2 +++ b/gettext-runtime/intl/localename.c
3 @@ -2607,7 +2607,7 @@ gl_locale_name_thread_unsafe (int catego
4      locale_t thread_locale = uselocale (NULL);
5      if (thread_locale != LC_GLOBAL_LOCALE)
6        {
7 -#  if __GLIBC__ >= 2
8 +#  if __GLIBC__ >= 2 && !defined __UCLIBC__
9          /* Work around an incorrect definition of the _NL_LOCALE_NAME macro in
10             glibc < 2.12.
11             See <http://sourceware.org/bugzilla/show_bug.cgi?id=10968>.  */
12 --- a/gettext-tools/gnulib-lib/localename.c
13 +++ b/gettext-tools/gnulib-lib/localename.c
14 @@ -2607,7 +2607,7 @@ gl_locale_name_thread_unsafe (int catego
15      locale_t thread_locale = uselocale (NULL);
16      if (thread_locale != LC_GLOBAL_LOCALE)
17        {
18 -#  if __GLIBC__ >= 2
19 +#  if __GLIBC__ >= 2 && !defined __UCLIBC__
20          /* Work around an incorrect definition of the _NL_LOCALE_NAME macro in
21             glibc < 2.12.
22             See <http://sourceware.org/bugzilla/show_bug.cgi?id=10968>.  */