sci-chemistry/gromacs: Fix compilation with gcc-13

Closes: https://bugs.gentoo.org/915694
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
This commit is contained in:
Pacho Ramos
2023-10-20 14:11:55 +02:00
parent d7ef938dd2
commit 05f1ec32b7
2 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
# https://bugs.gentoo.org/915694
# Not needed for newer branches, that greatly refactored the code
--- a/src/gromacs/utility/flags.h~ 2023-01-31 12:45:46.000000000 +0100
+++ b/src/gromacs/utility/flags.h 2023-10-16 10:15:24.087340444 +0200
@@ -42,7 +42,7 @@
*/
#ifndef GMX_UTILITY_FLAGS_H
#define GMX_UTILITY_FLAGS_H
-
+#include <cstdint>
namespace gmx
{

View File

@@ -88,6 +88,7 @@ RESTRICT="!test? ( test )"
PATCHES=(
"${FILESDIR}/${PN}-2021-musl-stdint.patch"
"${FILESDIR}/${PN}-2021-cuda-detection.patch"
"${FILESDIR}/${PN}-2021-cstdint-include.patch"
)
if [[ ${PV} != *9999 ]]; then