Error numbers are target specific.
Use the system supplied error numbers when mapping error numbers to messages.
Change-Id: I520556fa3e2ff668fdc4eda36ad31491fbb48ea8
Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Raghu Gandham <raghu@mips.com>
diff --git a/libc/string/strerror_r.c b/libc/string/strerror_r.c
index 2f26f17..30841f3 100644
--- a/libc/string/strerror_r.c
+++ b/libc/string/strerror_r.c
@@ -35,7 +35,7 @@
static const CodeString _sys_error_strings[] =
{
-#define __BIONIC_ERRDEF(x,y,z) { y, z },
+#define __BIONIC_ERRDEF(x,y,z) { x, z },
#include <sys/_errdefs.h>
{ 0, NULL }
};