Loading...
--- Libc/Libc-763.13/stdlib/FreeBSD/strtol.c.patch
+++ Libc/Libc-391/stdlib/FreeBSD/strtol.c.patch
@@ -1,15 +1,15 @@
---- strtol.c.bsdnew 2009-11-13 14:11:51.000000000 -0800
-+++ strtol.c 2009-11-13 14:11:51.000000000 -0800
-@@ -33,6 +33,8 @@ static char sccsid[] = "@(#)strtol.c 8.1
+--- strtol.c.orig 2003-05-20 15:23:25.000000000 -0700
++++ strtol.c 2005-02-17 00:43:42.000000000 -0800
+@@ -37,6 +37,8 @@
#include <sys/cdefs.h>
- __FBSDID("$FreeBSD: src/lib/libc/stdlib/strtol.c,v 1.20 2007/01/09 00:28:10 imp Exp $");
+ __FBSDID("$FreeBSD: src/lib/libc/stdlib/strtol.c,v 1.17 2002/09/06 11:23:59 tjr Exp $");
+#include "xlocale_private.h"
+
#include <limits.h>
#include <ctype.h>
#include <errno.h>
-@@ -46,7 +48,8 @@ __FBSDID("$FreeBSD: src/lib/libc/stdlib/
+@@ -50,7 +52,8 @@
* alphabets and digits are each contiguous.
*/
long
@@ -19,7 +19,7 @@
{
const char *s;
unsigned long acc;
-@@ -54,6 +57,7 @@ strtol(const char * __restrict nptr, cha
+@@ -58,6 +61,7 @@
unsigned long cutoff;
int neg, any, cutlim;
@@ -27,7 +27,7 @@
/*
* Skip white space and pick up leading +/- sign if any.
* If base is 0, allow 0x for hex and 0 for octal, else
-@@ -62,7 +66,7 @@ strtol(const char * __restrict nptr, cha
+@@ -66,7 +70,7 @@
s = nptr;
do {
c = *s++;
@@ -36,7 +36,7 @@
if (c == '-') {
neg = 1;
c = *s++;
-@@ -138,3 +142,9 @@ noconv:
+@@ -139,3 +143,9 @@
*endptr = (char *)(any ? s - 1 : nptr);
return (acc);
}