From: Rich Felker Date: Fri, 26 Jul 2013 18:53:50 +0000 (-0400) Subject: add ABI symbols for strtol family functions X-Git-Tag: v0.9.12~9 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ce053255218bf1901950ba9e770f495f086f9e87;p=oweals%2Fmusl.git add ABI symbols for strtol family functions these odd names are actually generated by mess in glibc's stdlib.h, so any glibc-linked program using strtol needs them to run against musl. --- diff --git a/src/stdlib/strtol.c b/src/stdlib/strtol.c index 7ee88794..730bf2d7 100644 --- a/src/stdlib/strtol.c +++ b/src/stdlib/strtol.c @@ -4,6 +4,7 @@ #include #include #include +#include "libc.h" static unsigned long long strtox(const char *s, char **p, int base, unsigned long long lim) { @@ -54,3 +55,10 @@ uintmax_t strtoumax(const char *restrict s, char **restrict p, int base) { return strtoull(s, p, base); } + +weak_alias(strtol, __strtol_internal); +weak_alias(strtoul, __strtoul_internal); +weak_alias(strtoll, __strtoll_internal); +weak_alias(strtoull, __strtoull_internal); +weak_alias(strtoimax, __strtoimax_internal); +weak_alias(strtoumax, __strtoumax_internal);