aboutsummaryrefslogtreecommitdiffstats
path: root/meta-multimedia/recipes-support/srt/srt/0001-core-Fix-build-with-GCC-11.-1806.patch
blob: 0cb6943ccbb93c4325b9a09f3d4aea608fd52095 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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