SHA256
1
0
forked from pool/srt
Files
srt/0001-Fix-build-with-GCC-11.patch

26 lines
584 B
Diff

From 93d0a244b8494a436ce97343bb46174a731aaef1 Mon Sep 17 00:00:00 2001
From: Christophe Giboudeaux <christophe@krop.fr>
Date: Wed, 10 Feb 2021 11:28:02 +0100
Subject: [PATCH] Fix build with GCC 11.
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 59c125a..9f01ca9 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.0