view src/readline-3-fd_set.patch @ 7186:19a46de50b18 default tip @

* src/jasper.mk: update to v4.2.4
author John Donoghue <john.donoghue@ieee.org>
date Thu, 02 May 2024 09:22:30 -0400
parents 5f2c92da4d9c
children
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/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