gettext-full: fix compilation against uClibc 0.9.30 (#8413)
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 6 Feb 2011 16:47:41 +0000 (16:47 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 6 Feb 2011 16:47:41 +0000 (16:47 +0000)
SVN-Revision: 25389

libs/gettext-full/patches/005-uclibc-0.9.30-compat.patch [new file with mode: 0644]

diff --git a/libs/gettext-full/patches/005-uclibc-0.9.30-compat.patch b/libs/gettext-full/patches/005-uclibc-0.9.30-compat.patch
new file mode 100644 (file)
index 0000000..dafa79c
--- /dev/null
@@ -0,0 +1,22 @@
+--- a/gettext-runtime/intl/localename.c
++++ b/gettext-runtime/intl/localename.c
+@@ -2607,7 +2607,7 @@ gl_locale_name_thread_unsafe (int catego
+     locale_t thread_locale = uselocale (NULL);
+     if (thread_locale != LC_GLOBAL_LOCALE)
+       {
+-#  if __GLIBC__ >= 2
++#  if __GLIBC__ >= 2 && !defined __UCLIBC__
+         /* Work around an incorrect definition of the _NL_LOCALE_NAME macro in
+            glibc < 2.12.
+            See <http://sourceware.org/bugzilla/show_bug.cgi?id=10968>.  */
+--- a/gettext-tools/gnulib-lib/localename.c
++++ b/gettext-tools/gnulib-lib/localename.c
+@@ -2607,7 +2607,7 @@ gl_locale_name_thread_unsafe (int catego
+     locale_t thread_locale = uselocale (NULL);
+     if (thread_locale != LC_GLOBAL_LOCALE)
+       {
+-#  if __GLIBC__ >= 2
++#  if __GLIBC__ >= 2 && !defined __UCLIBC__
+         /* Work around an incorrect definition of the _NL_LOCALE_NAME macro in
+            glibc < 2.12.
+            See <http://sourceware.org/bugzilla/show_bug.cgi?id=10968>.  */