diff options
author | Volker Stolz <vs@FreeBSD.org> | 2006-04-17 11:06:55 +0000 |
---|---|---|
committer | Volker Stolz <vs@FreeBSD.org> | 2006-04-17 11:06:55 +0000 |
commit | cc5f4bac257c462471132dce2edbc0daf1db2038 (patch) | |
tree | d2d57f0ff37eaf602944a59755436dc7e04b9b61 /audio/wavpack/files | |
parent | Conflict with gcc-4.2.*, not this port in case we build Java. (diff) |
Fix build on 4.x
PR: ports/95906
Submitted by: Jeffrey H. Johnson
Diffstat (limited to 'audio/wavpack/files')
-rw-r--r-- | audio/wavpack/files/patch-wavpack.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/audio/wavpack/files/patch-wavpack.c b/audio/wavpack/files/patch-wavpack.c new file mode 100644 index 000000000000..c6da495ee3e6 --- /dev/null +++ b/audio/wavpack/files/patch-wavpack.c @@ -0,0 +1,22 @@ + +$FreeBSD$ + +--- wavpack.c.orig ++++ wavpack.c +@@ -1604,6 +1604,7 @@ + MultiByteToWideChar (CP_ACP, 0, string, -1, temp, max_chars + 1);
+ WideCharToUTF8 (temp, (uchar *) string, len);
+ #else
++ iconv_t converter;
+ char *temp = malloc (len);
+ char *outp = temp;
+ char *inp = string;
+@@ -1614,7 +1615,7 @@ +
+ memset(temp, 0, len);
+ old_locale = setlocale (LC_CTYPE, "");
+- iconv_t converter = iconv_open ("UTF-8", "");
++ converter = iconv_open ("UTF-8", "");
+ err = iconv (converter, &inp, &insize, &outp, &outsize);
+ iconv_close (converter);
+ setlocale (LC_CTYPE, old_locale);
|