sci-mathematics/polymake: trivial build fix for newer compilers

Closes: https://bugs.gentoo.org/939388
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
This commit is contained in:
Michael Orlitzky 2025-04-18 12:30:49 -04:00
parent 391eeda487
commit c688602054
No known key found for this signature in database
GPG Key ID: 6F48D3DA05C2DADB
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/lib/core/include/internal/comparators.h b/lib/core/include/internal/comparators.h
index 57e3f14..3486f80 100644
--- a/lib/core/include/internal/comparators.h
+++ b/lib/core/include/internal/comparators.h
@@ -17,6 +17,8 @@
#pragma once
+#include <cstdint>
+
#include "polymake/internal/comparators_ops.h"
#include "polymake/internal/matrix_rows_cols.h"
#include "polymake/TransformedContainer.h"

View File

@ -53,6 +53,8 @@ RDEPEND="${DEPEND}
dev-perl/XML-SAX
dev-perl/XML-Writer"
PATCHES=( "${FILESDIR}/${P}-cstdint.patch" )
src_configure() {
# Without this, the build system tries to use "the highest possible"
# optimization level and will override what's in your CXXFLAGS.