commit 4329671c7530d4f947f09e122b0ac767dca93959
Author: Vitaly Zaitsev <vitaly(a)easycoding.org>
Date: Fri Aug 24 17:49:07 2018 +0200
Replaced patch again.
libtgvoip-add-missing-headers.patch | 34 ++++++++++++++++++++--------------
1 file changed, 20 insertions(+), 14 deletions(-)
---
diff --git a/libtgvoip-add-missing-headers.patch b/libtgvoip-add-missing-headers.patch
index 47810a9..d389224 100644
--- a/libtgvoip-add-missing-headers.patch
+++ b/libtgvoip-add-missing-headers.patch
@@ -1,25 +1,31 @@
-From e49a95040f0909608f62e3dd9e435bf58292553b Mon Sep 17 00:00:00 2001
-From: Vitaly Zaitsev <vitaly(a)easycoding.org>
-Date: Fri, 24 Aug 2018 17:26:11 +0200
-Subject: [PATCH] Fixed build under GCC 8.2.1. Added missing includes.
+From 23ae67306d7fa1c4d5a8a9c8653f63ab93100f88 Mon Sep 17 00:00:00 2001
+From: Grishka <grishka93(a)gmail.com>
+Date: Fri, 24 Aug 2018 18:38:09 +0300
+Subject: [PATCH] closes #50
-Signed-off-by: Vitaly Zaitsev <vitaly(a)easycoding.org>
---
- VoIPController.cpp | 1 +
- 1 file changed, 1 insertion(+)
+ VoIPController.cpp | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/VoIPController.cpp b/VoIPController.cpp
-index 4032411..66416b1 100644
+index 4032411..567de25 100644
--- a/VoIPController.cpp
+++ b/VoIPController.cpp
-@@ -26,6 +26,7 @@
+@@ -26,7 +26,7 @@
#include <stdexcept>
#include <algorithm>
#include <inttypes.h>
-+#include <cfloat>
+-
++#include <float.h>
-
---
-2.17.1
-
+ inline int pad4(int x){
+@@ -873,7 +873,7 @@ void VoIPController::RunRecvThread(void* arg){
+ stats.bytesRecvdWifi+=(uint64_t) len;
+ try{
+ ProcessIncomingPacket(packet, srcEndpoint);
+- }catch(out_of_range x){
++ }catch(out_of_range& x){
+ LOGW("Error parsing packet: %s", x.what());
+ }
+ }