2259dcd05de1d362e18e4da77dbabc2ab3656588
[openwrt/svn-archive/archive.git] / libs / gettext / patches / 120-uclibc-nolocale.patch
1 Index: gettext-0.16.1/gettext-runtime/intl/localename.c
2 ===================================================================
3 --- gettext-0.16.1.orig/gettext-runtime/intl/localename.c 2007-12-29 22:51:09.363903016 +0100
4 +++ gettext-0.16.1/gettext-runtime/intl/localename.c 2008-10-26 16:57:14.048169957 +0100
5 @@ -988,7 +988,7 @@
6 {
7 /* Use the POSIX methods of looking to 'LC_ALL', 'LC_xxx', and 'LANG'.
8 On some systems this can be done by the 'setlocale' function itself. */
9 -#if defined HAVE_SETLOCALE && defined HAVE_LC_MESSAGES && defined HAVE_LOCALE_NULL
10 +#if defined HAVE_SETLOCALE && defined HAVE_LC_MESSAGES && defined HAVE_LOCALE_NULL && (!defined __UCLIBC__ || defined __UCLIBC_HAS_LOCALE__)
11 return setlocale (category, NULL);
12 #else
13 const char *retval;