X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/fbd86d4cc20b02a10edcca92fb7ae0a143e63cc4..1f2f436a38f7ae2d39a943ad2898d8fed4ed2e58:/stdlib/FreeBSD/strtoumax.c.patch diff --git a/stdlib/FreeBSD/strtoumax.c.patch b/stdlib/FreeBSD/strtoumax.c.patch index ab7112e..fbbc5e0 100644 --- a/stdlib/FreeBSD/strtoumax.c.patch +++ b/stdlib/FreeBSD/strtoumax.c.patch @@ -1,15 +1,15 @@ ---- strtoumax.c.orig 2003-05-20 15:23:25.000000000 -0700 -+++ strtoumax.c 2005-02-23 13:24:30.000000000 -0800 -@@ -37,6 +37,8 @@ +--- strtoumax.c.bsdnew 2009-11-13 14:11:52.000000000 -0800 ++++ strtoumax.c 2009-11-13 14:11:52.000000000 -0800 +@@ -33,6 +33,8 @@ static char sccsid[] = "from @(#)strtoul #include - __FBSDID("$FreeBSD: src/lib/libc/stdlib/strtoumax.c,v 1.8 2002/09/06 11:23:59 tjr Exp $"); + __FBSDID("$FreeBSD: src/lib/libc/stdlib/strtoumax.c,v 1.11 2007/01/09 00:28:10 imp Exp $"); +#include "xlocale_private.h" + #include #include #include -@@ -49,7 +51,8 @@ +@@ -45,7 +47,8 @@ __FBSDID("$FreeBSD: src/lib/libc/stdlib/ * alphabets and digits are each contiguous. */ uintmax_t @@ -19,7 +19,7 @@ { const char *s; uintmax_t acc; -@@ -57,13 +60,14 @@ +@@ -53,13 +56,14 @@ strtoumax(const char * __restrict nptr, uintmax_t cutoff; int neg, any, cutlim; @@ -35,7 +35,7 @@ if (c == '-') { neg = 1; c = *s++; -@@ -117,3 +121,9 @@ +@@ -116,3 +120,9 @@ noconv: *endptr = (char *)(any ? s - 1 : nptr); return (acc); }