diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-04-05 08:45:18 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-04-06 05:19:27 +0000 |
commit | 4eaafa7558ec41a11a970c6239cafe7754422274 (patch) | |
tree | 858d0a55a220deca9c3e28befee16361e0d97f7d /community/mumble/boost-1.66.patch | |
parent | 333ed3118d9cabf21b1390ce2efa58cdcf3a845a (diff) | |
download | aports-4eaafa7558ec41a11a970c6239cafe7754422274.tar.bz2 aports-4eaafa7558ec41a11a970c6239cafe7754422274.tar.xz |
community/mumble: fix build with boost 1.66
Diffstat (limited to 'community/mumble/boost-1.66.patch')
-rw-r--r-- | community/mumble/boost-1.66.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/community/mumble/boost-1.66.patch b/community/mumble/boost-1.66.patch new file mode 100644 index 0000000000..cf61106ce6 --- /dev/null +++ b/community/mumble/boost-1.66.patch @@ -0,0 +1,32 @@ +From ea861fe86743c8402bbad77d8d1dd9de8dce447e Mon Sep 17 00:00:00 2001 +From: Mikkel Krautz <mikkel@krautz.dk> +Date: Fri, 29 Dec 2017 14:47:25 +0100 +Subject: [PATCH] AudioOutput: do not use non-existant template version of + std::abs. + +This change fixes AudioOutput to use the float overload of std::abs: + + float std::abs(float); + +instead of a non-existant template version. + +Fixes mumble-voip/mumble#3281 + +Needs-Backport: 1.2.x +--- + src/mumble/AudioOutput.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/mumble/AudioOutput.cpp b/src/mumble/AudioOutput.cpp +index cbe0c0e2b..7a0a5e2ab 100644 +--- a/src/mumble/AudioOutput.cpp ++++ b/src/mumble/AudioOutput.cpp +@@ -437,7 +437,7 @@ bool AudioOutput::mix(void *outbuff, unsigned int nsamp) { + top[2] = 0.0f; + } + +- if (std::abs<float>(front[0] * top[0] + front[1] * top[1] + front[2] * top[2]) > 0.01f) { ++ if (std::abs(front[0] * top[0] + front[1] * top[1] + front[2] * top[2]) > 0.01f) { + // Not perpendicular. Assume Y up and rotate 90 degrees. + + float azimuth = 0.0f; |