summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-libs/criterion/criterion-2.4_pre20200110.ebuild4
-rw-r--r--dev-libs/criterion/files/criterion-2.4_pre20200110-gcc11.patch12
2 files changed, 16 insertions, 0 deletions
diff --git a/dev-libs/criterion/criterion-2.4_pre20200110.ebuild b/dev-libs/criterion/criterion-2.4_pre20200110.ebuild
index e4a1dfa78f3..54b81b96c9d 100644
--- a/dev-libs/criterion/criterion-2.4_pre20200110.ebuild
+++ b/dev-libs/criterion/criterion-2.4_pre20200110.ebuild
@@ -37,6 +37,10 @@ BDEPEND="virtual/pkgconfig"
S="${WORKDIR}/Criterion-${CRITERION_COMMIT}"
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.4_pre20200110-gcc11.patch
+)
+
python_check_deps() {
has_version "dev-util/cram[${PYTHON_USEDEP}]"
}
diff --git a/dev-libs/criterion/files/criterion-2.4_pre20200110-gcc11.patch b/dev-libs/criterion/files/criterion-2.4_pre20200110-gcc11.patch
new file mode 100644
index 00000000000..c99e03af6f1
--- /dev/null
+++ b/dev-libs/criterion/files/criterion-2.4_pre20200110-gcc11.patch
@@ -0,0 +1,12 @@
+diff --git a/include/criterion/internal/assert/ieee.h b/include/criterion/internal/assert/ieee.h
+index 3b6de3b..2063d87 100644
+--- a/include/criterion/internal/assert/ieee.h
++++ b/include/criterion/internal/assert/ieee.h
+@@ -29,6 +29,7 @@
+ #ifdef __cplusplus
+
+ # include <cmath>
++# include <limits>
+
+ namespace criterion { namespace internal { namespace operators {
+