diff options
author | Sam James <sam@gentoo.org> | 2024-07-17 05:16:12 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-07-17 05:16:30 +0100 |
commit | 36c44443c4e698841c7b5044470ef13b9c99dd7f (patch) | |
tree | b99a431f0641fe23786e5943ca7d229966c4731b /dev-debug/cgdb/files | |
parent | dev-debug/cgdb: drop 0.7.1 (diff) | |
download | gentoo-36c44443c4e698841c7b5044470ef13b9c99dd7f.tar.gz gentoo-36c44443c4e698841c7b5044470ef13b9c99dd7f.tar.bz2 gentoo-36c44443c4e698841c7b5044470ef13b9c99dd7f.zip |
dev-debug/cgdb: fix modern C issue in configure
No need for a revbump here as it failed to compile if the check failed, not
misdetecting anything.
Closes: https://bugs.gentoo.org/830222
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-debug/cgdb/files')
-rw-r--r-- | dev-debug/cgdb/files/cgdb-0.8.0-configure-c99.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/dev-debug/cgdb/files/cgdb-0.8.0-configure-c99.patch b/dev-debug/cgdb/files/cgdb-0.8.0-configure-c99.patch new file mode 100644 index 000000000000..bd021476bf53 --- /dev/null +++ b/dev-debug/cgdb/files/cgdb-0.8.0-configure-c99.patch @@ -0,0 +1,23 @@ +https://bugs.gentoo.org/830222 +https://github.com/cgdb/cgdb/pull/338 + +From 039dba0ec3ae2c4b2636418652a5c63f9ff86049 Mon Sep 17 00:00:00 2001 +From: Florian Weimer <fweimer@redhat.com> +Date: Wed, 8 Mar 2023 11:29:06 +0100 +Subject: [PATCH] configure: Avoid implicit int in readline check + +Future compilers will not accept implicit ints by default, altering +the outcome of the check without this change. + +Signed-off-by: Florian Weimer <fweimer@redhat.com> +--- a/config/readline_check_version.m4 ++++ b/config/readline_check_version.m4 +@@ -86,7 +86,7 @@ AC_CACHE_VAL(ac_cv_rl_version, + #include <stdlib.h> + #include <readline/readline.h> + +-main() ++int main(void) + { + FILE *fp; + fp = fopen("conftest.rlv", "w"); |