summaryrefslogtreecommitdiff
path: root/audio/sox/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'audio/sox/patches/patch-ab')
-rw-r--r--audio/sox/patches/patch-ab23
1 files changed, 23 insertions, 0 deletions
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 */