diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-07-26 14:53:50 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-07-26 14:53:50 -0400 |
commit | ce053255218bf1901950ba9e770f495f086f9e87 (patch) | |
tree | 6365ccc17073f47c80197063dce86b94d294b830 /src/stdlib/strtol.c | |
parent | a97a050eca5167404667f38ad3b5bbc86f987e69 (diff) | |
download | musl-ce053255218bf1901950ba9e770f495f086f9e87.tar.gz musl-ce053255218bf1901950ba9e770f495f086f9e87.tar.bz2 musl-ce053255218bf1901950ba9e770f495f086f9e87.tar.xz musl-ce053255218bf1901950ba9e770f495f086f9e87.zip |
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.
Diffstat (limited to 'src/stdlib/strtol.c')
-rw-r--r-- | src/stdlib/strtol.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 <inttypes.h> #include <limits.h> #include <ctype.h> +#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); |