diff options
author | Dima Dorfman <dd@FreeBSD.org> | 2005-06-28 04:37:12 +0000 |
---|---|---|
committer | Dima Dorfman <dd@FreeBSD.org> | 2005-06-28 04:37:12 +0000 |
commit | c8d4c6e11126c1ac7b953dfd3fa17626042c9790 (patch) | |
tree | edad3df0ae98d9b1ecb4888a9e43099c24cfe89c /net/dictd | |
parent | Update to 2.10.1. (diff) |
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 <andy@trit.org>
Notes
Notes:
svn path=/head/; revision=138095
Diffstat (limited to 'net/dictd')
-rw-r--r-- | net/dictd/files/patch-dictfmt.c | 20 | ||||
-rw-r--r-- | net/dictd/files/patch-str.c | 11 |
2 files changed, 31 insertions, 0 deletions
diff --git a/net/dictd/files/patch-dictfmt.c b/net/dictd/files/patch-dictfmt.c new file mode 100644 index 000000000000..751420a45ff5 --- /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 000000000000..d969e63b228e --- /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); |