From 50ed68a11f34c5b2e306c8d9c08255e50a75c1a2 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Mon, 1 Dec 2025 11:57:44 -0600 Subject: [PATCH] Fix a problme identified upstream for readline-8.3. --- chapter08/readline.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/chapter08/readline.xml b/chapter08/readline.xml index eefd9f966..c821359fb 100644 --- a/chapter08/readline.xml +++ b/chapter08/readline.xml @@ -56,6 +56,16 @@ sed -i '/{OLDSUFF}/c:' support/shlib-install sed -i 's/-Wl,-rpath,[^ ]*//' support/shobj-conf + + Fix a problem identified upstream specifically for this version of readline: + + +sed -e '270a\ + else\ + chars_avail = 1;' \ + -e '288i\ result = -1;' \ + -i.orig input.c + Prepare Readline for compilation: ./configure --prefix=/usr \