libebml: fix build on some toolchains
PATCH v2 1/1 libebml: fix build on some toolchains
Replace climits include by limits (retrieve upstream patch from:
https://github.com/Matroska-Org/libebml/commit/e46906b80e7662fb78d305f576412f9fa4a22218)
Fixes:
- http://autobuild.buildroot.net/results/3c2402a7052acb67fc7e03ad2ff27e84534aaa36
---
Changes v1 -> v2 (after review of Thomas Petazzoni):
- Update patch with upstream reference and SoB
...bmlSInteger-Use-limits-instead-of-climits.patch | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 package/libebml/0001-EbmlSInteger-Use-limits-instead-of-climits.patch
package/libebml/0001-EbmlSInteger-Use-limits-instead-of-climits.patch new file +28 -0
@@ -0,0 +1,28 @@ +From e46906b80e7662fb78d305f576412f9fa4a22218 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= <[email protected]> +Date: Mon, 23 Apr 2018 12:05:42 +0200 +Subject: [PATCH] EbmlSInteger: Use <limits> instead of <climits> + +The former is the proper header to use for std::numerical_limits + +Retrieved from: +https://github.com/Matroska-Org/libebml/commit/e46906b80e7662fb78d305f576412f9fa4a22218 + +Signed-off-by: Fabrice Fontaine <[email protected]> +--- + src/EbmlSInteger.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/EbmlSInteger.cpp b/src/EbmlSInteger.cpp +index 33f3637..b930f7d 100644 +--- a/src/EbmlSInteger.cpp ++++ b/src/EbmlSInteger.cpp +@@ -33,7 +33,7 @@ + \author Moritz Bunkus <moritz @ bunkus.org> + */ + #include <cassert> +-#include <climits> ++#include <limits> + + #include "ebml/EbmlSInteger.h" +
Signature · 1 line
2.14.1
Thomas Petazzoni
AppliedPATCH v2 1/1 libebml: fix build on some toolchains
Hello,
Quoted 10 lines · Fabrice Fontaine
Replace climits include by limits (retrieve upstream patch from:
https://github.com/Matroska-Org/libebml/commit/e46906b80e7662fb78d305f576412f9fa4a22218)Fixes:
- http://autobuild.buildroot.net/results/3c2402a7052acb67fc7e03ad2ff27e84534aaa36Signed-off-by Fabrice Fontaine <[email protected]>---
Changes v1 -> v2 (after review of Thomas Petazzoni):
- Update patch with upstream reference and SoB
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com