pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/libdca SunPro doesn't like zero-sized array decl...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c2584e95f808
branches:  trunk
changeset: 582662:c2584e95f808
user:      shattered <shattered%pkgsrc.org@localhost>
date:      Wed Nov 24 22:27:06 2010 +0000

description:
SunPro doesn't like zero-sized array declarations, use 1.

"audio_out_wav.c", line 166: zero or negative subscript
"audio_out_wav.c", line 167: zero or negative subscript

diffstat:

 audio/libdca/distinfo         |   3 ++-
 audio/libdca/patches/patch-ab |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r 54c63ce3756f -r c2584e95f808 audio/libdca/distinfo
--- a/audio/libdca/distinfo     Wed Nov 24 21:17:06 2010 +0000
+++ b/audio/libdca/distinfo     Wed Nov 24 22:27:06 2010 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2008/09/07 13:54:43 wiz Exp $
+$NetBSD: distinfo,v 1.4 2010/11/24 22:27:06 shattered Exp $
 
 SHA1 (libdca-0.0.5.tar.bz2) = 3fa5188eaaa2fc83fb9c4196f6695a23cb17f3bc
 RMD160 (libdca-0.0.5.tar.bz2) = 979ef56b7484e6542db035d03258f5fba63b9302
 Size (libdca-0.0.5.tar.bz2) = 393291 bytes
+SHA1 (patch-ab) = 7c736fec06ec3ed15bf7c2a4bb5d096469cfce8b
 SHA1 (patch-dtsdec) = 536268aa4009a3a0816ae2442e1be0f81233b0d1
diff -r 54c63ce3756f -r c2584e95f808 audio/libdca/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/libdca/patches/patch-ab     Wed Nov 24 22:27:06 2010 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1 2010/11/24 22:27:06 shattered Exp $
+
+--- libao/audio_out_wav.c.orig 2007-04-10 12:07:05.000000000 +0000
++++ libao/audio_out_wav.c
+@@ -163,8 +163,8 @@ static int wav_play (ao_instance_t * _in
+     union
+     {
+         float floats[256 * 6];
+-        int16_t words[0];
+-        int32_t dwords[0];
++        int16_t words[1];
++        int32_t dwords[1];
+     } ordered_samples;
+     int chans, size;
+     uint32_t speaker_flags;



Home | Main Index | Thread Index | Old Index