cgdb: fix compilation with GCC 14

See https://github.com/cgdb/cgdb/pull/368 for the upstream pull request.
This commit is contained in:
Patrick Steinhardt 2024-12-30 08:59:46 +01:00
parent e6773e5fdd
commit 6245ca9cbb
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/configure b/configure
index c564dc1..e13c67c 100755
--- a/configure
+++ b/configure
@@ -6512,7 +6512,7 @@ else
#include <stdlib.h>
#include <readline/readline.h>
-main()
+int main()
{
FILE *fp;
fp = fopen("conftest.rlv", "w");

View File

@ -17,6 +17,10 @@ stdenv.mkDerivation (finalAttrs: {
sha256 = "sha256-DTi1JNN3JXsQa61thW2K4zBBQOHuJAhTQ+bd8bZYEfE=";
};
patches = [
./gcc14.patch
];
buildInputs = [
ncurses
readline