summaryrefslogtreecommitdiff
path: root/src/string/strerror_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string/strerror_r.c')
-rw-r--r--src/string/strerror_r.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/string/strerror_r.c b/src/string/strerror_r.c
index 907dcf07..da26b4fe 100644
--- a/src/string/strerror_r.c
+++ b/src/string/strerror_r.c
@@ -1,5 +1,6 @@
#include <string.h>
#include <errno.h>
+#include "libc.h"
int strerror_r(int err, char *buf, size_t buflen)
{
@@ -15,3 +16,5 @@ int strerror_r(int err, char *buf, size_t buflen)
memcpy(buf, msg, l+1);
return 0;
}
+
+weak_alias(strerror_r, __xpg_strerror_r);