From 7a4e15c50525db56efe67d23b36e955ca21c3a8c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 15 Sep 2007 00:52:56 +0000 Subject: add strerror_r symbol alias as some autotool based packages simply use AC_CHECK_LIB() to see if a function exists rather than checking the headers --- libc/string/__xpg_strerror_r.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libc/string/__xpg_strerror_r.c b/libc/string/__xpg_strerror_r.c index c5096a6f7..f07237287 100644 --- a/libc/string/__xpg_strerror_r.c +++ b/libc/string/__xpg_strerror_r.c @@ -5,11 +5,16 @@ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. */ +/* Make sure we get proper strerror_r() prototype */ +#define strerror_r __moo + #include #include #include #include "_syserrmsg.h" +#undef strerror_r + libc_hidden_proto(__xpg_strerror_r) libc_hidden_proto(memcpy) libc_hidden_proto(strlen) @@ -271,3 +276,4 @@ int __xpg_strerror_r(int errnum, char *strerrbuf, size_t buflen) #endif /* __UCLIBC_HAS_ERRNO_MESSAGES__ */ libc_hidden_def(__xpg_strerror_r) +weak_alias(__xpg_strerror_r, strerror_r) -- cgit v1.2.3