media-sound/snd: Unconditionally compile oss_sample_types function

Closes: https://bugs.gentoo.org/show_bug.cgi?id=621758
Package-Manager: Portage-2.3.8, Repoman-2.3.3
This commit is contained in:
David Seifert
2017-09-05 09:13:35 +02:00
parent 8ecff1eb24
commit c019d4cfa3
2 changed files with 23 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
Always compile the `oss_sample_types` function
Bug: https://bugs.gentoo.org/show_bug.cgi?id=621758
--- a/audio.c
+++ b/audio.c
@@ -743,7 +743,6 @@
}
-#if (!HAVE_ALSA)
static int oss_sample_types(int ur_dev, mus_sample_t *val)
{
int fd, samp_types = 0, sys, ind;
@@ -774,7 +773,6 @@
val[0] = (mus_sample_t)(ind - 1);
return(MUS_NO_ERROR);
}
-#endif

View File

@@ -44,7 +44,8 @@ REQUIRED_USE="
?? ( ruby s7 )"
PATCHES=(
"${FILESDIR}/${PN}-17.4-portaudio.patch"
"${FILESDIR}"/${PN}-17.4-portaudio.patch
"${FILESDIR}"/${PN}-17.4-undefined-oss_sample_types.patch
)
pkg_setup() {