|
@@ -5,11 +5,16 @@
|
|
|
* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
|
|
|
*/
|
|
|
|
|
|
+/* get rid of REDIRECT */
|
|
|
+#define strerror_r __hide_strerror_r
|
|
|
+
|
|
|
#include <features.h>
|
|
|
#include <errno.h>
|
|
|
#include <string.h>
|
|
|
#include "_syserrmsg.h"
|
|
|
|
|
|
+#undef strerror_r
|
|
|
+
|
|
|
#ifdef __UCLIBC_HAS_ERRNO_MESSAGES__
|
|
|
|
|
|
extern const char _string_syserrmsgs[] attribute_hidden;
|
|
@@ -267,4 +272,6 @@ int __xpg_strerror_r(int errnum, char *strerrbuf, size_t buflen)
|
|
|
|
|
|
#endif /* __UCLIBC_HAS_ERRNO_MESSAGES__ */
|
|
|
libc_hidden_def(__xpg_strerror_r)
|
|
|
-strong_alias_untyped(__xpg_strerror_r, strerror_r)
|
|
|
+#if defined __USE_XOPEN2K && !defined __USE_GNU
|
|
|
+strong_alias(__xpg_strerror_r,strerror_r)
|
|
|
+#endif
|