diff options
author | Isaac Dunham <idunham@lavabit.com> | 2013-04-05 23:20:28 -0700 |
---|---|---|
committer | Isaac Dunham <idunham@lavabit.com> | 2013-04-05 23:20:28 -0700 |
commit | 14f0272ea1775c35801b2bc17e67ef8bb7e9742d (patch) | |
tree | 4e4f0d51e1b4f6b90a79968ef24941f182d4b325 /src/string/strerror_r.c | |
parent | ced64995c26a28ae40c5ae356b6c6a87a3bdf5ce (diff) | |
download | musl-14f0272ea1775c35801b2bc17e67ef8bb7e9742d.zip musl-14f0272ea1775c35801b2bc17e67ef8bb7e9742d.tar.gz musl-14f0272ea1775c35801b2bc17e67ef8bb7e9742d.tar.bz2 |
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.
Diffstat (limited to 'src/string/strerror_r.c')
-rw-r--r-- | src/string/strerror_r.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/string/strerror_r.c b/src/string/strerror_r.c index 907dcf0..da26b4f 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); |