From ce053255218bf1901950ba9e770f495f086f9e87 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 26 Jul 2013 14:53:50 -0400 Subject: [PATCH] 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. --- src/stdlib/strtol.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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); -- 2.25.1