5 Patch-ID: readline82-004
7 Bug-Reported-by: Henry Bent <henry.r.bent@gmail.com>
9 Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2022-11/msg00044.html
13 Patch (apply with `patch -p0'):
15 There are systems that supply one of select or pselect, but not both.
17 *** ../readline-8.2-patched/input.c 2022-04-08 15:43:24.000000000 -0400
18 --- input.c 2022-11-28 09:41:08.000000000 -0500
22 int _rl_timeout_init (void);
23 int _rl_timeout_sigalrm_handler (void);
24 + #if defined (RL_TIMEOUT_USE_SELECT)
25 int _rl_timeout_select (int, fd_set *, fd_set *, fd_set *, const struct timeval *, const sigset_t *);
28 static void _rl_timeout_handle (void);
33 ! #if defined(HAVE_SELECT)
34 fd_set readfds, exceptfds;
35 struct timeval timeout;
39 ! #if defined (HAVE_PSELECT) || defined (HAVE_SELECT)
40 fd_set readfds, exceptfds;
41 struct timeval timeout;
46 ! #if defined (HAVE_PSELECT)
52 ! #if defined (HAVE_PSELECT) || defined (HAVE_SELECT)
55 *** ../readline-8.2/patchlevel 2013-11-15 08:11:11.000000000 -0500
56 --- patchlevel 2014-03-21 08:28:40.000000000 -0400
59 # Do not edit -- exists only for use by patch
63 # Do not edit -- exists only for use by patch