From 65e31f6a7418bd09cfedd08bcc9ee95ea733bcd2 Mon Sep 17 00:00:00 2001 From: jow Date: Sun, 6 Feb 2011 16:47:41 +0000 Subject: [PATCH] [packages] gettext-full: fix compilation against uClibc 0.9.30 (#8413) git-svn-id: svn://svn.openwrt.org/openwrt/packages@25389 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../patches/005-uclibc-0.9.30-compat.patch | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 libs/gettext-full/patches/005-uclibc-0.9.30-compat.patch 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 index 000000000..dafa79c46 --- /dev/null +++ b/libs/gettext-full/patches/005-uclibc-0.9.30-compat.patch @@ -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 . */ +--- 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 . */