Mercurial > mxe-octave
comparison src/readline-3-fd_set.patch @ 6516:5ef7d51c2195
readline: Update to version 8.2-001.
* src/readline.mk: Update version and checksum.
* src/readline-0-001-upstream.patch: Upstream patch re-formatted to apply in
MXE Octave.
See: https://ftp.gnu.org/pub/gnu/readline/readline-8.2-patches/readline82-001
* src/readline-0-002-upstream.patch: Remove upstream patch for previous version.
* src/readline-1-input.patch, src/readline-1-sigwinch.patch: Update patches.
* src/readline-3-fd_set.patch: Add patch to guard functions that use types that
aren't available on Windows.
* src/gdb-1-readline-8.2.patch: Cherry-pick upstream patch.
* dist-files.mk: Update files in list.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sat, 12 Nov 2022 17:00:41 +0100 |
parents | |
children | 5f2c92da4d9c |
comparison
equal
deleted
inserted
replaced
6515:efc41d530cff | 6516:5ef7d51c2195 |
---|---|
1 Guard functions that use types that aren't available on all platforms with | |
2 pre-processor conditions. | |
3 | |
4 diff -urN readline-8.2/input.c.orig readline-8.2/input.c | |
5 --- readline-8.2/input.c.orig 2022-11-12 17:54:14.800371248 +0100 | |
6 +++ readline-8.2/input.c 2022-11-12 17:58:13.327167979 +0100 | |
7 @@ -151,7 +151,9 @@ | |
8 | |
9 int _rl_timeout_init (void); | |
10 int _rl_timeout_sigalrm_handler (void); | |
11 +#if defined (HAVE_PSELECT) || defined (HAVE_SELECT) | |
12 int _rl_timeout_select (int, fd_set *, fd_set *, fd_set *, const struct timeval *, const sigset_t *); | |
13 +#endif | |
14 | |
15 static void _rl_timeout_handle (void); | |
16 #if defined (RL_TIMEOUT_USE_SIGALRM) | |
17 | |
18 diff -urN readline-8.2/rlprivate.h.orig readline-8.2/rlprivate.h | |
19 --- readline-8.2/rlprivate.h.orig 2022-08-12 00:35:16.000000000 +0200 | |
20 +++ readline-8.2/rlprivate.h 2022-11-12 17:43:54.266291863 +0100 | |
21 @@ -303,7 +303,7 @@ | |
22 | |
23 extern int _rl_timeout_init (void); | |
24 extern int _rl_timeout_handle_sigalrm (void); | |
25 -#if defined (_POSIXSELECT_H_) | |
26 +#if defined (HAVE_PSELECT) || defined (HAVE_SELECT) | |
27 /* use as a sentinel for fd_set, struct timeval, and sigset_t definitions */ | |
28 extern int _rl_timeout_select (int, fd_set *, fd_set *, fd_set *, const struct timeval *, const sigset_t *); | |
29 #endif |