commit 806f19022d70f527db9df4078b7b75e512997100
Author: Vitaly Zaitsev <vitaly(a)easycoding.org>
Date: Fri Aug 24 17:29:32 2018 +0200
Fixed build.
libtgvoip-add-missing-headers.patch | 25 +++++++++++++++++++++++++
libtgvoip.spec | 3 +++
2 files changed, 28 insertions(+)
---
diff --git a/libtgvoip-add-missing-headers.patch b/libtgvoip-add-missing-headers.patch
new file mode 100644
index 0000000..81a0bf9
--- /dev/null
+++ b/libtgvoip-add-missing-headers.patch
@@ -0,0 +1,25 @@
+From 41012f3915427a5e712ff521de1215170088ebe6 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.
+
+Signed-off-by: Vitaly Zaitsev <vitaly(a)easycoding.org>
+---
+ VoIPController.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/VoIPController.h b/VoIPController.h
+index 954424b..b2e5982 100644
+--- a/VoIPController.h
++++ b/VoIPController.h
+@@ -21,6 +21,7 @@
+ #include <unordered_map>
+ #include <memory>
+ #include <atomic>
++#include <cfloat>
+ #include "audio/AudioInput.h"
+ #include "BlockingQueue.h"
+ #include "audio/AudioOutput.h"
+--
+2.17.1
+
diff --git a/libtgvoip.spec b/libtgvoip.spec
index 8c37fb7..1bcb9f8 100644
--- a/libtgvoip.spec
+++ b/libtgvoip.spec
@@ -11,6 +11,9 @@ URL:
https://github.com/grishka/%{name}
Source0: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: %{name}-build-fixes.patch
+# Temporary backported from upstream patches.
+Patch100: %{name}-add-missing-headers.patch
+
Provides: bundled(webrtc-audio-processing) = 0.3
BuildRequires: pulseaudio-libs-devel
BuildRequires: alsa-lib-devel