summaryrefslogtreecommitdiff
path: root/audio/amp/patches/patch-ah
diff options
context:
space:
mode:
Diffstat (limited to 'audio/amp/patches/patch-ah')
-rw-r--r--audio/amp/patches/patch-ah16
1 files changed, 16 insertions, 0 deletions
diff --git a/audio/amp/patches/patch-ah b/audio/amp/patches/patch-ah
new file mode 100644
index 00000000000..b2e6064ecb6
--- /dev/null
+++ b/audio/amp/patches/patch-ah
@@ -0,0 +1,16 @@
+$NetBSD: patch-ah,v 1.1 2007/01/21 04:02:01 rillig Exp $
+
+sunpro does not like non-static inline functions that refer to static
+variables.
+
+--- buffer.c.orig 1997-08-18 17:54:20.000000000 +0200
++++ buffer.c 2007-01-21 04:44:48.242585932 +0100
+@@ -46,7 +46,7 @@ static int control_fd;
+ /* This is a separate (but inlined) function to make it easier to implement */
+ /* a threaded buffer */
+
+-inline void
++static inline void
+ audioBufferWrite(char *buf,int bytes)
+ {
+ write(buffer_fd, buf, bytes);