Mercurial > mxe-octave
view src/readline-3-fd_set.patch @ 6726:32eed9f14d0f
* src/mesa.mk: update to v23.1.1
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sat, 27 May 2023 07:12:18 -0400 |
parents | 5ef7d51c2195 |
children | 5f2c92da4d9c |
line wrap: on
line source
Guard functions that use types that aren't available on all platforms with pre-processor conditions. diff -urN readline-8.2/input.c.orig readline-8.2/input.c --- readline-8.2/input.c.orig 2022-11-12 17:54:14.800371248 +0100 +++ readline-8.2/input.c 2022-11-12 17:58:13.327167979 +0100 @@ -151,7 +151,9 @@ int _rl_timeout_init (void); int _rl_timeout_sigalrm_handler (void); +#if defined (HAVE_PSELECT) || defined (HAVE_SELECT) int _rl_timeout_select (int, fd_set *, fd_set *, fd_set *, const struct timeval *, const sigset_t *); +#endif static void _rl_timeout_handle (void); #if defined (RL_TIMEOUT_USE_SIGALRM) diff -urN readline-8.2/rlprivate.h.orig readline-8.2/rlprivate.h --- readline-8.2/rlprivate.h.orig 2022-08-12 00:35:16.000000000 +0200 +++ readline-8.2/rlprivate.h 2022-11-12 17:43:54.266291863 +0100 @@ -303,7 +303,7 @@ extern int _rl_timeout_init (void); extern int _rl_timeout_handle_sigalrm (void); -#if defined (_POSIXSELECT_H_) +#if defined (HAVE_PSELECT) || defined (HAVE_SELECT) /* use as a sentinel for fd_set, struct timeval, and sigset_t definitions */ extern int _rl_timeout_select (int, fd_set *, fd_set *, fd_set *, const struct timeval *, const sigset_t *); #endif