diff options
author | dd <dd@FreeBSD.org> | 2005-06-28 12:37:12 +0800 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2005-06-28 12:37:12 +0800 |
commit | 22e2186bd7ddbc3b31a4d087a01cbf348a613b5d (patch) | |
tree | 287b86d2ba4404f2be4a915f4996bee47531f63c | |
parent | a9fb82e88c8f209fdf387c00837bfced50df48e7 (diff) | |
download | freebsd-ports-gnome-22e2186bd7ddbc3b31a4d087a01cbf348a613b5d.tar.gz freebsd-ports-gnome-22e2186bd7ddbc3b31a4d087a01cbf348a613b5d.tar.zst freebsd-ports-gnome-22e2186bd7ddbc3b31a4d087a01cbf348a613b5d.zip |
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>
-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); |