aboutsummaryrefslogtreecommitdiffstats
path: root/main/freeswitch/0001-mod_avmd-use-posix-isinf.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-07-27 11:31:21 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-07-27 16:52:02 +0000
commit63fd7f98905c4c9d338e4b7b22f58dc47f6d99b8 (patch)
tree5045a6c8a134bdaa6abbdad28fbf275a953277c4 /main/freeswitch/0001-mod_avmd-use-posix-isinf.patch
parentfdc727072d45fcbf94e931db85d2d2c29acae3cb (diff)
downloadaports-63fd7f98905c4c9d338e4b7b22f58dc47f6d99b8.tar.bz2
aports-63fd7f98905c4c9d338e4b7b22f58dc47f6d99b8.tar.xz
main/freeswitch: upgrade to 1.6.9
Diffstat (limited to 'main/freeswitch/0001-mod_avmd-use-posix-isinf.patch')
-rw-r--r--main/freeswitch/0001-mod_avmd-use-posix-isinf.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/main/freeswitch/0001-mod_avmd-use-posix-isinf.patch b/main/freeswitch/0001-mod_avmd-use-posix-isinf.patch
new file mode 100644
index 0000000000..66b824f55d
--- /dev/null
+++ b/main/freeswitch/0001-mod_avmd-use-posix-isinf.patch
@@ -0,0 +1,38 @@
+From 3a0c554bee54fdcaa9a51616175e55f0b3824e39 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Tue, 26 Jul 2016 15:14:15 +0000
+Subject: [PATCH] mod_avmd: use posix isinf
+
+---
+ src/mod/applications/mod_avmd/avmd_desa2_tweaked.c | 8 +-------
+ 1 file changed, 1 insertion(+), 7 deletions(-)
+
+diff --git a/src/mod/applications/mod_avmd/avmd_desa2_tweaked.c b/src/mod/applications/mod_avmd/avmd_desa2_tweaked.c
+index 8eae175..57c1206 100644
+--- a/src/mod/applications/mod_avmd/avmd_desa2_tweaked.c
++++ b/src/mod/applications/mod_avmd/avmd_desa2_tweaked.c
+@@ -4,12 +4,6 @@
+ #include <stdio.h>
+ #ifdef WIN32
+ #include <float.h>
+-#define ISNAN(x) (!!(_isnan(x)))
+-#define ISINF(x) (isinf(x))
+-#else
+-int __isnan(double);
+-#define ISNAN(x) (__isnan(x))
+-#define ISINF(x) (__isinf(x))
+ #endif
+ #include "avmd_buffer.h"
+ #include "avmd_desa2_tweaked.h"
+@@ -51,7 +45,7 @@ avmd_desa2_tweaked(circ_buffer_t *b, size_t i)
+ we do simplified, modified for speed version : */
+
+ result = n/d;
+- if (ISINF(result)) {
++ if (isinf(result)) {
+ if (n < 0.0)
+ return -10.0;
+ else
+--
+2.9.1
+