summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-03-25 20:28:19 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-10-12 19:24:32 +0200
commita7cd0cf2a31493506795528125a1d87428b67374 (patch)
tree199223a69e95024c711a9464bdbc0ea9a781c534 /include
parent87c4fa605d3d182ddee42388f87b23d3e874eb29 (diff)
downloaduClibc-alpine-a7cd0cf2a31493506795528125a1d87428b67374.tar.bz2
uClibc-alpine-a7cd0cf2a31493506795528125a1d87428b67374.tar.xz
- Add strtouq alias (to strtoul) for 64bit
The strtouq alias was only available on 32bit, breaking compilation of stuff using strtouq on 64bit machines. At the same time use the correct return type (u_quad_t). Signed-of-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/stdlib.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index b87dfd921..cb4258390 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -203,6 +203,8 @@ extern unsigned long int strtoul (__const char *__restrict __nptr,
__END_NAMESPACE_STD
#ifdef __USE_BSD
+#include <sys/types.h> /* for u_quad_t */
+
/* Convert a string to a quadword integer. */
__extension__
extern long long int strtoq (__const char *__restrict __nptr,
@@ -210,7 +212,7 @@ extern long long int strtoq (__const char *__restrict __nptr,
__THROW __nonnull ((1)) __wur;
/* Convert a string to an unsigned quadword integer. */
__extension__
-extern unsigned long long int strtouq (__const char *__restrict __nptr,
+extern u_quad_t strtouq (__const char *__restrict __nptr,
char **__restrict __endptr, int __base)
__THROW __nonnull ((1)) __wur;
#endif /* GCC and use BSD. */