From 22e2186bd7ddbc3b31a4d087a01cbf348a613b5d Mon Sep 17 00:00:00 2001
From: dd
Date: Tue, 28 Jun 2005 04:37:12 +0000
Subject: Unbreak on 4.x by using the the iswspace__ wrapper (4.x doesn't have
a native iswspace). Patch has been submitted to the maintainers (SF
#1228054).
Submitted by: Andy Miller
---
net/dictd/files/patch-dictfmt.c | 20 ++++++++++++++++++++
net/dictd/files/patch-str.c | 11 +++++++++++
2 files changed, 31 insertions(+)
create mode 100644 net/dictd/files/patch-dictfmt.c
create mode 100644 net/dictd/files/patch-str.c
(limited to 'net/dictd')
diff --git a/net/dictd/files/patch-dictfmt.c b/net/dictd/files/patch-dictfmt.c
new file mode 100644
index 00000000000..751420a45ff
--- /dev/null
+++ b/net/dictd/files/patch-dictfmt.c
@@ -0,0 +1,20 @@
+--- dictfmt.c.orig Sun Jun 26 23:20:02 2005
++++ dictfmt.c Sun Jun 26 23:20:37 2005
+@@ -356,7 +356,7 @@
+ len = mbtowc__ (&mbc, s, MB_CUR_MAX__);
+ assert (len >= 0);
+
+- if (len == 0 || !iswspace (mbc))
++ if (len == 0 || !iswspace__ (mbc))
+ break;
+
+ s += len;
+@@ -393,7 +393,7 @@
+ len = mbtowc__ (&mbc, s, MB_CUR_MAX__);
+ assert (len >= 0);
+
+- if (len == 0 || !iswspace (mbc))
++ if (len == 0 || !iswspace__ (mbc))
+ break;
+
+ s += len;
diff --git a/net/dictd/files/patch-str.c b/net/dictd/files/patch-str.c
new file mode 100644
index 00000000000..d969e63b228
--- /dev/null
+++ b/net/dictd/files/patch-str.c
@@ -0,0 +1,11 @@
+--- str.c.orig Sun Jun 26 23:19:54 2005
++++ str.c Sun Jun 26 23:20:19 2005
+@@ -74,7 +74,7 @@
+ if ((int) len < 0)
+ return errno;
+
+- if (iswspace (ucs4_char)){
++ if (iswspace__ (ucs4_char)){
+ *dest++ = ' ';
+ }else if (allchars_mode || iswalnum__ (ucs4_char)){
+ len2 = wcrtomb__ (dest, towlower__ (ucs4_char), &ps2);
--
cgit