diff options
author | grant <grant@pkgsrc.org> | 2004-06-12 01:37:39 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2004-06-12 01:37:39 +0000 |
commit | 7ee7f4c84ebede9bca924553ec897ef29a35ec05 (patch) | |
tree | 0734627fea9397fa4b395b08366064386a7c5e61 | |
parent | a64ef6e3d8bb8f522b4b30ec139b5b4298b53baa (diff) | |
download | pkgsrc-7ee7f4c84ebede9bca924553ec897ef29a35ec05.tar.gz |
inline linear2mulaw() and mulaw2linear().
with SunPro, inline functions can't call static functions unless they
are also inline.
fixes build on Solaris.
-rw-r--r-- | audio/madplay/distinfo | 3 | ||||
-rw-r--r-- | audio/madplay/patches/patch-ab | 22 |
2 files changed, 24 insertions, 1 deletions
diff --git a/audio/madplay/distinfo b/audio/madplay/distinfo index 95894ac281b..6054d58a663 100644 --- a/audio/madplay/distinfo +++ b/audio/madplay/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.5 2004/03/01 15:56:58 adam Exp $ +$NetBSD: distinfo,v 1.6 2004/06/12 01:37:39 grant Exp $ SHA1 (madplay-0.15.2b.tar.gz) = 29105eb27c1416aa33c8d1ab3404a8e5f0aecd3f Size (madplay-0.15.2b.tar.gz) = 590929 bytes SHA1 (patch-aa) = 0dd6ee05f9b0d58a88fe9b61f52bf847227c51a6 +SHA1 (patch-ab) = 7af616781aa695e6be2c4a4cae23dafc5d056c4f diff --git a/audio/madplay/patches/patch-ab b/audio/madplay/patches/patch-ab new file mode 100644 index 00000000000..d61907d449f --- /dev/null +++ b/audio/madplay/patches/patch-ab @@ -0,0 +1,22 @@ +$NetBSD: patch-ab,v 1.6 2004/06/12 01:37:39 grant Exp $ + +--- audio.c.orig 2004-01-23 20:41:31.000000000 +1100 ++++ audio.c +@@ -959,7 +959,7 @@ unsigned int audio_pcm_s32be(unsigned ch + } + } + +-static ++static inline + unsigned char linear2mulaw(mad_fixed_t sample) + { + unsigned int sign, mulaw; +@@ -1000,7 +1000,7 @@ unsigned char linear2mulaw(mad_fixed_t s + return mulaw; + } + +-static ++static inline + mad_fixed_t mulaw2linear(unsigned char mulaw) + { + int sign, segment, mantissa, value; |