blob: 3cd34155eea62ebe592193dd709c715ebfa9facb [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001From f7fa48c4c75a1e748dc5071e709c0b62ff739eaa Mon Sep 17 00:00:00 2001
2From: "jan.nijtmans" <nijtmans@users.sourceforge.net>
3Date: Mon, 9 Dec 2019 10:02:20 +0000
4Subject: [PATCH] Fix [abd4abedd2]: Failed to build tk 8.6.10 with cross
5 compile
6
7Upstream-Status: Backport
8[https://github.com/tcltk/tcl/commit/f7fa48c4c75a1e748dc5071e709c0b62ff739eaa]
9
10Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
11---
12 compat/strtol.c | 2 +-
13 compat/strtoul.c | 2 +-
14 2 files changed, 2 insertions(+), 2 deletions(-)
15
16diff --git a/compat/strtol.c b/compat/strtol.c
17index b7f69196c..811006a64 100644
18--- a/compat/strtol.c
19+++ b/compat/strtol.c
20@@ -53,7 +53,7 @@ strtol(
21 */
22
23 p = string;
24- while (TclIsSpaceProc(*p)) {
25+ while (isspace(UCHAR(*p))) {
26 p += 1;
27 }
28
29diff --git a/compat/strtoul.c b/compat/strtoul.c
30index e37eb05f8..15587f1da 100644
31--- a/compat/strtoul.c
32+++ b/compat/strtoul.c
33@@ -74,7 +74,7 @@ strtoul(
34 */
35
36 p = string;
37- while (TclIsSpaceProc(*p)) {
38+ while (isspace(UCHAR(*p))) {
39 p += 1;
40 }
41 if (*p == '-') {
42--
432.17.1
44