From f6c29fdb91143b97aff034de2c133b2a0983403b Mon Sep 17 00:00:00 2001 From: kwm Date: Tue, 12 Mar 2013 18:58:38 +0000 Subject: Fix fix compiler error by adding patch from upstream. PR: ports/176887 Submitted by: Lowell Gilbert Obtained from: pan upstream --- news/pan/files/patch-pan_usenet-utils_mime-utils.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 news/pan/files/patch-pan_usenet-utils_mime-utils.cc (limited to 'news') 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) { + /* -- cgit