[BACK]Return to patch-pan_usenet-utils_mime-utils.cc CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / news / pan / patches

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /pkgsrc/news/pan/patches/patch-pan_usenet-utils_mime-utils.cc between version 1.1 and 1.2

version 1.1, 2012/04/09 23:00:49 version 1.2, 2012/07/13 08:16:00
Line 2  $NetBSD$
Line 2  $NetBSD$
   
 Fix build with NetBSD's iconv().  Fix build with NetBSD's iconv().
   
 --- pan/usenet-utils/mime-utils.cc.orig 2012-04-08 15:30:36.000000000 +0000  --- pan/usenet-utils/mime-utils.cc.orig 2012-06-29 22:24:54.000000000 +0000
 +++ pan/usenet-utils/mime-utils.cc  +++ pan/usenet-utils/mime-utils.cc
 @@ -77,7 +77,7 @@ namespace pan  @@ -77,7 +77,11 @@ namespace pan
        outbuf = out + converted;         outbuf = out + converted;
        outleft = outlen - converted;         outleft = outlen - converted;
   
 -      converted = iconv (cd, (char **) &inbuf, &inleft, &outbuf, &outleft);  +#if defined(__NetBSD__)
 +      converted = iconv (cd, (const char **) &inbuf, &inleft, &outbuf, &outleft);  +      converted = iconv (cd, (const char **) &inbuf, &inleft, &outbuf, &outleft);
   +#else
          converted = iconv (cd, (char **) &inbuf, &inleft, &outbuf, &outleft);
   +#endif
   
        if (converted != (size_t) -1 && errno == 0) {         if (converted != (size_t) -1 && errno == 0) {
          /*           /*

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

CVSweb <webmaster@jp.NetBSD.org>