summaryrefslogtreecommitdiffstats
path: root/include/stdlib.h
diff options
context:
space:
mode:
authorKhem Raj <kraj@mvista.com>2009-03-28 05:26:39 +0000
committerKhem Raj <kraj@mvista.com>2009-03-28 05:26:39 +0000
commit8058fb1efc594a771ae7c356c33abbf4bac28ff6 (patch)
tree0b9aa76db3d525fdb62ecefd9bce0ca0130d645f /include/stdlib.h
parente13f0a5082593b037aeb3e7c29b9773d83804fd0 (diff)
downloaduClibc-alpine-8058fb1efc594a771ae7c356c33abbf4bac28ff6.tar.bz2
uClibc-alpine-8058fb1efc594a771ae7c356c33abbf4bac28ff6.tar.xz
Merged revisions 25821,25823-25824,25836 via svnmerge from
svn+ssh://svn.uclibc.org/svn/trunk/uClibc ........ r25821 | aldot | 2009-03-25 12:27:56 -0700 (Wed, 25 Mar 2009) | 2 lines - do not pass -Wl with -shared in LDFLAGS_NOSTRIP (Peter S. Mazinger) ........ r25823 | aldot | 2009-03-25 13:28:19 -0700 (Wed, 25 Mar 2009) | 8 lines - 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> ........ r25824 | aldot | 2009-03-26 01:51:47 -0700 (Thu, 26 Mar 2009) | 2 lines - ignore objects ........ r25836 | landley | 2009-03-26 21:03:20 -0700 (Thu, 26 Mar 2009) | 3 lines 32/64 bit sparc got unified in 2.6.29 the way x86/x86_64 did in 2.6.28. The new guard symbol is "__SPARC_POSIX_TYPES_H". ........
Diffstat (limited to 'include/stdlib.h')
-rw-r--r--include/stdlib.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 124dc7329..52f02e4fd 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -209,6 +209,8 @@ libc_hidden_proto(strtoul)
__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,
@@ -216,7 +218,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. */