diff options
author | riggs <riggs@FreeBSD.org> | 2015-01-05 02:24:22 +0800 |
---|---|---|
committer | riggs <riggs@FreeBSD.org> | 2015-01-05 02:24:22 +0800 |
commit | 9bc491b9f4b796c23d38db4b30d5282dbe9efa6e (patch) | |
tree | a434b00d12d871467a4ff0d56b57538bbdee013a /audio | |
parent | d29901f56756d230bf6ed1d9d97e972fdccbebf3 (diff) | |
download | freebsd-ports-graphics-9bc491b9f4b796c23d38db4b30d5282dbe9efa6e.tar.gz freebsd-ports-graphics-9bc491b9f4b796c23d38db4b30d5282dbe9efa6e.tar.zst freebsd-ports-graphics-9bc491b9f4b796c23d38db4b30d5282dbe9efa6e.zip |
Fix build failure with non-default ALSA option
PR: 196163
Submitted by: mi@ALDAN.algebra.com
MFH: 2015Q1
Diffstat (limited to 'audio')
-rw-r--r-- | audio/fluidsynth/files/patch-src__drivers__fluid_alsa.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/audio/fluidsynth/files/patch-src__drivers__fluid_alsa.c b/audio/fluidsynth/files/patch-src__drivers__fluid_alsa.c new file mode 100644 index 00000000000..26d07b59f84 --- /dev/null +++ b/audio/fluidsynth/files/patch-src__drivers__fluid_alsa.c @@ -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"); |