[BACK]Return to patch-liboctave_wrappers_iconv-wrappers.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / math / octave / patches

File: [cvs.NetBSD.org] / pkgsrc / math / octave / patches / Attic / patch-liboctave_wrappers_iconv-wrappers.c (download)

Revision 1.2, Mon Jun 14 22:39:01 2021 UTC (19 months, 2 weeks ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2
Changes since 1.1: +2 -2 lines

octave: fix URL in comment

$NetBSD: patch-liboctave_wrappers_iconv-wrappers.c,v 1.2 2021/06/14 22:39:01 wiz Exp $

 * fix iconv_t void* confict pkg/56240
 from upstream:
 https://hg.savannah.gnu.org/hgweb/octave/rev/69087119ee84

--- liboctave/wrappers/iconv-wrappers.c.orig	2021-02-19 17:36:34.000000000 +0000
+++ liboctave/wrappers/iconv-wrappers.c
@@ -31,14 +31,14 @@
 
 #include "iconv-wrappers.h"
 
-iconv_t
+void *
 octave_iconv_open_wrapper (const char *tocode, const char *fromcode)
 {
-  return iconv_open (tocode, fromcode);
+  return (void *) iconv_open (tocode, fromcode);
 }
 
 int
-octave_iconv_close_wrapper (iconv_t cd)
+octave_iconv_close_wrapper (void * cd)
 {
-  return iconv_close (cd);
+  return iconv_close ((iconv_t) cd);
 }