summaryrefslogtreecommitdiff
path: root/emulators/qemu/patches/patch-ef
blob: 9b38f21a842a68a8e90ec87fb650f6923212210c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ef,v 1.6 2013/07/09 17:00:58 tsutsui Exp $

Avoid conflicts with SSP read() macro in NetBSD's <ssp/unistd.h>
(PR lib/43832: ssp causes common names to be defines)

--- audio/audio.c.orig	2013-06-26 21:47:29.000000000 +0000
+++ audio/audio.c
@@ -1172,7 +1172,7 @@ int AUD_read (SWVoiceIn *sw, void *buf, 
         return 0;
     }
 
-    bytes = sw->hw->pcm_ops->read (sw, buf, size);
+    bytes = (*sw->hw->pcm_ops->read)(sw, buf, size);
     return bytes;
 }