diff options
author | kwm <kwm@FreeBSD.org> | 2013-03-13 02:58:38 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2013-03-13 02:58:38 +0800 |
commit | f6c29fdb91143b97aff034de2c133b2a0983403b (patch) | |
tree | 1c2e42efadccb073341907e44c5b3c3c60237f7b /news | |
parent | db246aadf153a1fff1ed75dd4e08137104d6fc1d (diff) | |
download | freebsd-ports-gnome-f6c29fdb91143b97aff034de2c133b2a0983403b.tar.gz freebsd-ports-gnome-f6c29fdb91143b97aff034de2c133b2a0983403b.tar.zst freebsd-ports-gnome-f6c29fdb91143b97aff034de2c133b2a0983403b.zip |
Fix fix compiler error by adding patch from upstream.
PR: ports/176887
Submitted by: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
Obtained from: pan upstream
Diffstat (limited to 'news')
-rw-r--r-- | news/pan/files/patch-pan_usenet-utils_mime-utils.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/news/pan/files/patch-pan_usenet-utils_mime-utils.cc b/news/pan/files/patch-pan_usenet-utils_mime-utils.cc new file mode 100644 index 000000000000..f71bfc17ade8 --- /dev/null +++ b/news/pan/files/patch-pan_usenet-utils_mime-utils.cc @@ -0,0 +1,14 @@ +--- pan/usenet-utils/mime-utils.cc.orig 2013-03-12 18:24:13.000000000 +0000 ++++ pan/usenet-utils/mime-utils.cc 2013-03-12 18:25:19.000000000 +0000 +@@ -77,7 +77,11 @@ + outbuf = out + converted; + outleft = outlen - converted; + ++#if defined(__NetBSD__) || defined(__FreeBSD__) ++ converted = iconv (cd, &inbuf, &inleft, &outbuf, &outleft); ++#else + converted = iconv (cd, (char **) &inbuf, &inleft, &outbuf, &outleft); ++#endif + + if (converted != (size_t) -1 && errno == 0) { + /* |