strtouq on 64bit

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Wed Mar 25 20:53:44 UTC 2009


On Tue, Mar 10, 2009 at 08:59:14PM +0100, Peter Korsgaard wrote:
>>>>>> "Khem" == Khem Raj <raj.khem at gmail.com> writes:
>
> >>  #endif /* GCC and use BSD.  */
>
> Khem> looks ok.
>
>Thanks, but it fails with locale support. This should be better:
>
>[PATCH]: 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 at sunsite.dk>
>---
> include/stdlib.h     |    4 +++-
> libc/stdlib/stdlib.c |    1 +
> 2 files changed, 4 insertions(+), 1 deletion(-)

<Jacmet> blindvt: I've tested in on ppc32 on real hw and arm in qemu

Thus applied to trunk as r25823.
Thanks!


More information about the uClibc mailing list