mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sci-biology/tree-puzzle: fix configure checks for modern c
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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() {
|
||||
Reference in New Issue
Block a user