commit: 23efe86242c8871d0a614640da3c784d7eceb655 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> AuthorDate: Tue Mar 5 10:18:23 2024 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Tue Mar 5 10:19:11 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23efe862
dev-lang/gnat-gpl: fix configure Closes: https://bugs.gentoo.org/926177 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> dev-lang/gnat-gpl/files/gnat-gpl-2021-gentoo.patch | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dev-lang/gnat-gpl/files/gnat-gpl-2021-gentoo.patch b/dev-lang/gnat-gpl/files/gnat-gpl-2021-gentoo.patch index 485626c03569..6e26ad680043 100644 --- a/dev-lang/gnat-gpl/files/gnat-gpl-2021-gentoo.patch +++ b/dev-lang/gnat-gpl/files/gnat-gpl-2021-gentoo.patch @@ -56,17 +56,19 @@ ac_cv_c_stack_direction=0 else + cat >>confdefs.h <<_ACEOF -+#include <stdlib.h> ++extern void exit(int status); +_ACEOF cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ find_stack_direction () -@@ -7539,6 +7542,9 @@ +@@ -7539,6 +7542,11 @@ if test "$cross_compiling" = yes; then : ac_cv_func_strncmp_works=yes else + cat >>confdefs.h <<_ACEOF -+#include <string.h> ++ extern int strlen(const char *s); ++ extern char *strcpy(char *dst, const char *src); ++ extern int strncmp(const char *s1, const char *s2, size_t n); +_ACEOF cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */