1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-03 11:12:13 +00:00

Fix build failure with non-default ALSA option

PR:		196163
Submitted by:	mi@ALDAN.algebra.com
MFH:		2015Q1
This commit is contained in:
Thomas Zander 2015-01-04 18:24:22 +00:00
parent 97fd198549
commit c9fdd43a1e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=376263

View File

@ -0,0 +1,17 @@
--- src/drivers/fluid_alsa.c 2012-08-16 00:01:13.000000000 -0400
+++ src/drivers/fluid_alsa.c 2014-12-20 12:59:44.000000000 -0500
@@ -348,5 +348,4 @@
snd_pcm_wait(pcm, 1);
break;
- case -EPIPE:
case -EBADFD:
if (snd_pcm_prepare(pcm) != 0) {
@@ -355,5 +354,8 @@
}
break;
+ case -EPIPE:
+#if EPIPE != ESTRPIPE
case -ESTRPIPE:
+#endif
if ((snd_pcm_resume(pcm) != 0) && (snd_pcm_prepare(pcm) != 0)) {
FLUID_LOG(FLUID_ERR, "Failed to resume the audio device");