diff options
author | vs <vs@FreeBSD.org> | 2006-04-17 19:06:55 +0800 |
---|---|---|
committer | vs <vs@FreeBSD.org> | 2006-04-17 19:06:55 +0800 |
commit | 708df7921017255d030f061fee72735b146b3895 (patch) | |
tree | f97545bebd28ab670e4e676c89ef26127d43a974 /audio | |
parent | 87c6c51c2ae107dc2da4b4626990911624290280 (diff) | |
download | freebsd-ports-graphics-708df7921017255d030f061fee72735b146b3895.tar.gz freebsd-ports-graphics-708df7921017255d030f061fee72735b146b3895.tar.zst freebsd-ports-graphics-708df7921017255d030f061fee72735b146b3895.zip |
Fix build on 4.x
PR: ports/95906
Submitted by: Jeffrey H. Johnson
Diffstat (limited to 'audio')
-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 00000000000..c6da495ee3e --- /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);
|