diff --git a/srcpkgs/chroot-bash/patches/gcc14-termcap.patch b/srcpkgs/chroot-bash/patches/gcc14-termcap.patch new file mode 100644 index 00000000000..e8394ad7984 --- /dev/null +++ b/srcpkgs/chroot-bash/patches/gcc14-termcap.patch @@ -0,0 +1,20 @@ +Fix compiling with fallback termcap library +https://lists.nongnu.org/archive/html/bug-bash/2024-12/msg00029.html +Taken from: https://cgit.git.savannah.gnu.org/cgit/bash.git/commit/?h=bash-5.3-testing&id=f223b24c4b299f00b64e68ca7f066e5bb4f717a0 + +diff --git a/lib/termcap/tparam.c b/lib/termcap/tparam.c +index c4bff088e..cd500efd8 100644 +--- a/lib/termcap/tparam.c ++++ b/lib/termcap/tparam.c +@@ -30,6 +30,10 @@ extern char *malloc (); + extern char *realloc (); + #endif + ++#ifdef HAVE_UNISTD_H ++#include ++#endif ++ + #if defined (HAVE_STRING_H) + #include + #endif +