From 14f0272ea1775c35801b2bc17e67ef8bb7e9742d Mon Sep 17 00:00:00 2001 From: Isaac Dunham Date: Fri, 5 Apr 2013 23:20:28 -0700 Subject: Add ABI compatability aliases. GNU used several extensions that were incompatible with C99 and POSIX, so they used alternate names for the standard functions. The result is that we need these to run standards-conformant programs that were linked with glibc. --- src/string/strerror_r.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/string/strerror_r.c') 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 #include +#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); -- cgit v1.2.1