diff options
author | shattered <shattered> | 2010-11-24 22:27:06 +0000 |
---|---|---|
committer | shattered <shattered> | 2010-11-24 22:27:06 +0000 |
commit | e6a29cf70afbfe1e3948c4a79df52b037848f465 (patch) | |
tree | 6df54bd7222ae9ce70144a3b7377b2f898fdf4b5 /audio | |
parent | afe2d5e47b85b5f332619919d49ff8d51b728911 (diff) | |
download | pkgsrc-e6a29cf70afbfe1e3948c4a79df52b037848f465.tar.gz |
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 (limited to 'audio')
-rw-r--r-- | audio/libdca/distinfo | 3 | ||||
-rw-r--r-- | audio/libdca/patches/patch-ab | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/audio/libdca/distinfo b/audio/libdca/distinfo index d0be8953cbf..947681d278d 100644 --- a/audio/libdca/distinfo +++ b/audio/libdca/distinfo @@ -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 --git a/audio/libdca/patches/patch-ab b/audio/libdca/patches/patch-ab new file mode 100644 index 00000000000..43e9cf39721 --- /dev/null +++ b/audio/libdca/patches/patch-ab @@ -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; |