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:
Mark Wright 2024-06-06 14:06:57 +10:00
parent 4576572331
commit 80650c5da0
No known key found for this signature in database
GPG Key ID: 630320470E096FA5
2 changed files with 12 additions and 0 deletions

View File

@ -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() {

View File

@ -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;