Browse Source

contribs: srt: Fix build with gcc11

pull/134/head
Hugo Beauzée-Luyssen 5 years ago
parent
commit
a49c449f1d
  1. 22
      contrib/src/srt/fix-gcc11-build.patch
  2. 1
      contrib/src/srt/rules.mak

22
contrib/src/srt/fix-gcc11-build.patch

@ -0,0 +1,22 @@
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.
---
srtcore/sync.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/srtcore/sync.h b/srtcore/sync.h
index 59c125a75..9f01ca91e 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>

1
contrib/src/srt/rules.mak

@ -27,6 +27,7 @@ $(TARBALLS)/srt-$(SRT_VERSION).tar.gz:
srt: srt-$(SRT_VERSION).tar.gz .sum-srt
$(UNPACK)
$(APPLY) $(SRC)/srt/0001-core-ifdef-MSG_TRUNC-nixes-fix.patch
$(APPLY) $(SRC)/srt/fix-gcc11-build.patch
$(call pkg_static,"scripts/srt.pc.in")
mv srt-$(SRT_VERSION) $@ && touch $@

Loading…
Cancel
Save