summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2024-03-05 11:18:23 +0100
committerAlfredo Tupone <tupone@gentoo.org>2024-03-05 11:19:11 +0100
commit23efe86242c8871d0a614640da3c784d7eceb655 (patch)
tree5408a24f0e98de3a7b658ed12b39292164ac3419 /dev-lang/gnat-gpl
parentprofiles: Mask kde-misc/gmail-feed for removal (diff)
downloadgentoo-23efe86242c8871d0a614640da3c784d7eceb655.tar.gz
gentoo-23efe86242c8871d0a614640da3c784d7eceb655.tar.bz2
gentoo-23efe86242c8871d0a614640da3c784d7eceb655.zip
dev-lang/gnat-gpl: fix configure
Closes: https://bugs.gentoo.org/926177 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-lang/gnat-gpl')
-rw-r--r--dev-lang/gnat-gpl/files/gnat-gpl-2021-gentoo.patch8
1 files 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. */