srt: Backport fix for missing <limits> header

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Jose Quaresma <quaresma.jose@gmail.com>
Cc: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
Khem Raj 2021-03-03 07:06:36 -08:00
parent 78027bf3ad
commit de2140c893
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,26 @@
From f1b35cbf5b9b42b031e9b119e4c802b5f744468c Mon Sep 17 00:00:00 2001
From: Christophe Giboudeaux <krop@users.noreply.github.com>
Date: Wed, 10 Feb 2021 12:42:45 +0000
Subject: [PATCH] [core] Fix build with GCC 11. (#1806)
The 'limits' header must be included explicitly.
---
Upstream-Status: Backport [https://github.com/haivision/srt/commit/f1b35cbf5b9b42b031e9b119e4c802b5f744468c]
srtcore/sync.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/srtcore/sync.h b/srtcore/sync.h
index 59c125a7..9f01ca91 100644
--- a/srtcore/sync.h
+++ b/srtcore/sync.h
@@ -15,6 +15,7 @@
//#define ENABLE_CXX17
#include <cstdlib>
+#include <limits>
#ifdef ENABLE_STDCXX_SYNC
#include <chrono>
#include <thread>
--
2.30.1

View File

@ -9,6 +9,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=815ca599c9df247a0c7f619bab123dad"
SRCREV = "50b7af06f3a0a456c172b4cb3aceafa8a5cc0036"
SRC_URI = "git://github.com/Haivision/srt;protocol=https \
file://0001-don-t-install-srt-ffplay.patch \
file://0001-core-Fix-build-with-GCC-11.-1806.patch \
"
UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
S = "${WORKDIR}/git"