[git commit prelink] locale.c: export newlocale only if XLOCALE is defined
Peter S. Mazinger
ps.m at gmx.net
Wed Mar 30 11:53:36 UTC 2011
commit: http://git.uclibc.org/uClibc/commit/?id=5c38edaeca35c3b3631d28acc43c96f3970d9d48
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/prelink
newlocale is used by setlocale, so we need the hidden version
even if XLOCALE is not defined
Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
libc/misc/locale/locale.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libc/misc/locale/locale.c b/libc/misc/locale/locale.c
index e49cd3b..40303ab 100644
--- a/libc/misc/locale/locale.c
+++ b/libc/misc/locale/locale.c
@@ -1303,7 +1303,9 @@ __locale_t newlocale(int category_mask, const char *locale, __locale_t base)
return base;
}
+#ifdef __UCLIBC_HAS_XLOCALE__
libc_hidden_def(newlocale)
+#endif
#endif
/**********************************************************************/
--
1.7.3.4
More information about the uClibc-cvs
mailing list