about summary refs log tree commit diff
path: root/src/stdlib/strtol.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdlib/strtol.c')
-rw-r--r--src/stdlib/strtol.c8
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);