mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-16 14:29:05 -07:00
dev-libs/criterion: fix build w/ gcc-15
Closes: https://bugs.gentoo.org/946970 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -36,6 +36,10 @@ DEPEND="${RDEPEND}
|
||||
BDEPEND="dev-build/cmake
|
||||
virtual/pkgconfig"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.4.1-includes.patch
|
||||
)
|
||||
|
||||
python_check_deps() {
|
||||
has_version "dev-util/cram[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
14
dev-libs/criterion/files/criterion-2.4.1-includes.patch
Normal file
14
dev-libs/criterion/files/criterion-2.4.1-includes.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
--- a/include/criterion/alloc.h
|
||||
+++ b/include/criterion/alloc.h
|
||||
@@ -31,9 +31,11 @@
|
||||
#ifdef __cplusplus
|
||||
# include <memory>
|
||||
# include <cstddef>
|
||||
+# include <cstdint>
|
||||
using std::size_t;
|
||||
#else
|
||||
# include <stddef.h>
|
||||
+# include <stdint.h>
|
||||
#endif
|
||||
#include "internal/common.h"
|
||||
|
||||
Reference in New Issue
Block a user