summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/readline/readline/readline82-004.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/readline/readline/readline82-004.patch')
-rw-r--r--meta/recipes-core/readline/readline/readline82-004.patch68
1 files changed, 68 insertions, 0 deletions
diff --git a/meta/recipes-core/readline/readline/readline82-004.patch b/meta/recipes-core/readline/readline/readline82-004.patch
new file mode 100644
index 0000000000..cedc3d0fe4
--- /dev/null
+++ b/meta/recipes-core/readline/readline/readline82-004.patch
@@ -0,0 +1,68 @@
1 READLINE PATCH REPORT
2 =====================
3
4Readline-Release: 8.2
5Patch-ID: readline82-004
6
7Bug-Reported-by: Henry Bent <henry.r.bent@gmail.com>
8Bug-Reference-ID:
9Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2022-11/msg00044.html
10
11Bug-Description:
12
13Patch (apply with `patch -p0'):
14
15There are systems that supply one of select or pselect, but not both.
16
17Upstream-Status: Submitted [https://ftp.gnu.org/gnu/readline/readline-8.2-patches/]
18Signed-off-by: Khem Raj <raj.khem@gmail.com>
19
20*** ../readline-8.2-patched/input.c 2022-04-08 15:43:24.000000000 -0400
21--- input.c 2022-11-28 09:41:08.000000000 -0500
22***************
23*** 152,156 ****
24--- 152,158 ----
25 int _rl_timeout_init (void);
26 int _rl_timeout_sigalrm_handler (void);
27+ #if defined (RL_TIMEOUT_USE_SELECT)
28 int _rl_timeout_select (int, fd_set *, fd_set *, fd_set *, const struct timeval *, const sigset_t *);
29+ #endif
30
31 static void _rl_timeout_handle (void);
32***************
33*** 249,253 ****
34 int chars_avail, k;
35 char input;
36! #if defined(HAVE_SELECT)
37 fd_set readfds, exceptfds;
38 struct timeval timeout;
39--- 251,255 ----
40 int chars_avail, k;
41 char input;
42! #if defined (HAVE_PSELECT) || defined (HAVE_SELECT)
43 fd_set readfds, exceptfds;
44 struct timeval timeout;
45***************
46*** 806,810 ****
47 unsigned char c;
48 int fd;
49! #if defined (HAVE_PSELECT)
50 sigset_t empty_set;
51 fd_set readfds;
52--- 815,819 ----
53 unsigned char c;
54 int fd;
55! #if defined (HAVE_PSELECT) || defined (HAVE_SELECT)
56 sigset_t empty_set;
57 fd_set readfds;
58*** ../readline-8.2/patchlevel 2013-11-15 08:11:11.000000000 -0500
59--- patchlevel 2014-03-21 08:28:40.000000000 -0400
60***************
61*** 1,3 ****
62 # Do not edit -- exists only for use by patch
63
64! 3
65--- 1,3 ----
66 # Do not edit -- exists only for use by patch
67
68! 4