sci-biology/tree-puzzle: fix configure checks for modern c

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2023-12-02 04:41:31 +00:00
parent a96f4a543f
commit 7b7a0493bc
2 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
--- a/configure.ac
+++ b/configure.ac
@@ -33,7 +33,7 @@ int main (int argc, char **argv)
{
MPI_Init(&argc,&argv);
MPI_Finalize();
-exit(0);
+return 0;
}
EOF
@@ -105,7 +105,7 @@ cat > conftest.c <<EOF
int main (int argc, char **argv)
{
printf ("%s-%s", PACKAGE, VERSION);
-exit(0);
+return 0;
}
EOF

View File

@@ -21,6 +21,7 @@ RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-C99-decls.patch
"${FILESDIR}"/${P}-MPI-3.0.patch
"${FILESDIR}"/${P}-configure-c99.patch
)
src_prepare() {