Files
pkgsrc-ng/emulators/qemu/patches/patch-ef
2013-09-26 17:14:40 +02:00

17 lines
477 B
Plaintext

$NetBSD: patch-ef,v 1.5 2013/06/16 18:27:25 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-05-24 13:37:57.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;
}