306b2278b7
-Raphael git-svn-id: svn://svn.openwrt.org/openwrt/packages@19767 3c298f89-4303-0410-b956-a3cf2f4a3e73
13 lines
800 B
Diff
13 lines
800 B
Diff
diff -pruN gettext-0.17.orig/gettext-runtime/intl/localename.c gettext-0.17/gettext-runtime/intl/localename.c
|
|
--- gettext-0.17.orig/gettext-runtime/intl/localename.c 2009-05-19 17:25:21.925748747 +0200
|
|
+++ gettext-0.17/gettext-runtime/intl/localename.c 2009-05-19 17:26:12.773472555 +0200
|
|
@@ -996,7 +996,7 @@ gl_locale_name_posix (int category, cons
|
|
{
|
|
/* Use the POSIX methods of looking to 'LC_ALL', 'LC_xxx', and 'LANG'.
|
|
On some systems this can be done by the 'setlocale' function itself. */
|
|
-#if defined HAVE_SETLOCALE && defined HAVE_LC_MESSAGES && defined HAVE_LOCALE_NULL
|
|
+#if defined HAVE_SETLOCALE && defined HAVE_LC_MESSAGES && defined HAVE_LOCALE_NULL && (!defined __UCLIBC__ || defined __UCLIBC_HAS_LOCALE__)
|
|
return setlocale (category, NULL);
|
|
#else
|
|
const char *retval;
|