1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-05 11:35:01 +00:00

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
This commit is contained in:
Koop Mast 2013-03-12 18:58:38 +00:00
parent 41876bb8e6
commit ffa8a3291b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=313998

View File

@ -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) {
/*