mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
app-emulation/dosemu: Patch (by me) c99 error
Thanks to toralf for reporting. Fix compiler error: mid_o_tmdty.c:80:35: error: passing argument 1 of pcm_write_interleaved from incompatible pointer type [-Wincompatible-pointer-types] Closes: https://bugs.gentoo.org/919387 Signed-off-by: Mark Wright <gienah@gentoo.org>
This commit is contained in:
parent
4576572331
commit
80650c5da0
@ -57,6 +57,7 @@ PATCHES=(
|
||||
"${FILESDIR}"/${P}-lto.patch
|
||||
"${FILESDIR}"/${P}-as.patch
|
||||
"${FILESDIR}"/${P}-nm.patch
|
||||
"${FILESDIR}"/${P}-pcm_write_interleaved-incompatiible-pointer-type.patch
|
||||
)
|
||||
|
||||
pkg_pretend() {
|
||||
|
||||
@ -0,0 +1,11 @@
|
||||
--- dosemu-code-15cfb41ff20a052769d753c3262c57ecb050ad71-orig/src/plugin/midimisc/mid_o_tmdty.c 2013-01-07 10:44:22.000000000 +1100
|
||||
+++ dosemu-code-15cfb41ff20a052769d753c3262c57ecb050ad71/src/plugin/midimisc/mid_o_tmdty.c 2024-06-06 12:57:40.055442661 +1000
|
||||
@@ -77,7 +77,7 @@
|
||||
if (n > 0) {
|
||||
int frames = n / (pcm_format_size(fmt) * TMDTY_CHANS);
|
||||
pcm_running = 1;
|
||||
- pcm_write_interleaved(buf, frames, TMDTY_FREQ, fmt,
|
||||
+ pcm_write_interleaved((sndbuf_t(*)[SNDBUF_CHANS])buf, frames, TMDTY_FREQ, fmt,
|
||||
TMDTY_CHANS, pcm_stream);
|
||||
} else {
|
||||
break;
|
||||
Loading…
x
Reference in New Issue
Block a user