From 37e941305eca75362db4858214f2abd31e10fa92 Mon Sep 17 00:00:00 2001 From: oreo639 Date: Wed, 11 Jun 2025 12:34:59 -0700 Subject: [PATCH] chroot-bash: fix building vendored termcap library --- .../chroot-bash/patches/gcc14-termcap.patch | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 srcpkgs/chroot-bash/patches/gcc14-termcap.patch 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 +