From 7e5c79bcc67d3f45f1d310eefc40f39330008628 Mon Sep 17 00:00:00 2001 From: "\"Steven J. Hill\"" Date: Sat, 30 Jul 2005 00:03:07 +0000 Subject: The newly added __glibc_strerror_r function is probably fine, but the uClibc did not even compile or link without errors. This fixes that up. Please test more thoroughly next time. --- libc/string/wstring.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libc/string') diff --git a/libc/string/wstring.c b/libc/string/wstring.c index 6f54ae615..6e4d895b6 100644 --- a/libc/string/wstring.c +++ b/libc/string/wstring.c @@ -1571,8 +1571,6 @@ int __xpg_strerror_r(int errnum, char *strerrbuf, size_t buflen) /**********************************************************************/ #ifdef L___glibc_strerror_r -weak_alias(__glibc_strerror_r,__strerror_r); - char *__glibc_strerror_r(int errnum, char *strerrbuf, size_t buflen) { __xpg_strerror_r(errnum, strerrbuf, buflen); @@ -1580,6 +1578,8 @@ char *__glibc_strerror_r(int errnum, char *strerrbuf, size_t buflen) return strerrbuf; } +weak_alias(__glibc_strerror_r,__strerror_r); + #endif /**********************************************************************/ #ifdef L_memmem -- cgit v1.2.3