From 14811859672c0d988a96787f070a7ef9dec7c0eb Mon Sep 17 00:00:00 2001 From: rillig Date: Wed, 26 Apr 2006 07:41:17 +0000 Subject: Added a patch to support SunPro. --- audio/sox/distinfo | 3 ++- audio/sox/patches/patch-ab | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 audio/sox/patches/patch-ab (limited to 'audio/sox') diff --git a/audio/sox/distinfo b/audio/sox/distinfo index 2e9a95b5eac..ae7e17c0d96 100644 --- a/audio/sox/distinfo +++ b/audio/sox/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.11 2006/04/04 18:19:13 wiz Exp $ +$NetBSD: distinfo,v 1.12 2006/04/26 07:41:17 rillig Exp $ SHA1 (sox-12.17.9.tar.gz) = 1c20f73a38cc5dfe15102df0565c7f2cea7e0bd8 RMD160 (sox-12.17.9.tar.gz) = 1ba76bf5329daafe75158757b7074f8385788353 Size (sox-12.17.9.tar.gz) = 468174 bytes SHA1 (patch-aa) = a1e3d17b0f674dd55405879337754c16846e5b03 +SHA1 (patch-ab) = 52157b6875ca4ca1b116ae898e26a99652bdb55b diff --git a/audio/sox/patches/patch-ab b/audio/sox/patches/patch-ab new file mode 100644 index 00000000000..836b582a881 --- /dev/null +++ b/audio/sox/patches/patch-ab @@ -0,0 +1,23 @@ +$NetBSD: patch-ab,v 1.10 2006/04/26 07:41:17 rillig Exp $ + +SunPro does not like extern inline functions that reference static +functions. + +--- src/adpcm.c.orig Tue Nov 23 00:07:37 2004 ++++ src/adpcm.c Wed Apr 26 09:29:21 2006 +@@ -72,6 +72,7 @@ const short iCoef[7][2] = { + { 392,-232} + }; + ++static + inline st_sample_t AdpcmDecode(st_sample_t c, MsState_t *state, + st_sample_t sample1, st_sample_t sample2) + { +@@ -303,6 +304,7 @@ static long ReAvgDelta(int ch, int chans + + #endif + ++static + inline void AdpcmMashChannel( + int ch, /* channel number to encode, REQUIRE 0 <= ch < chans */ + int chans, /* total channels */ -- cgit v1.2.3