aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-01-23 10:11:30 -0700
committerTom Tromey <tom@tromey.com>2021-02-06 11:20:46 -0700
commit4cbf332613a833e214e825817093b945c6a38bbd (patch)
treeeebb23947aa3c5a525bc09cef8cf3853207151e0
parentd255005f2121d29581170a8f5b89f63c339c593e (diff)
downloadgdb-users/tromey/readline-8.1-update.zip
gdb-users/tromey/readline-8.1-update.tar.gz
gdb-users/tromey/readline-8.1-update.tar.bz2
Fix Readline 8.1 build on mingwusers/tromey/readline-8.1-update
The mingw build fails with Readline 8.1, because sigprocmask is called unconditionally. This patch adds the missing check for HAVE_POSIX_SIGNALS. I reported this upstream here: https://lists.gnu.org/archive/html/bug-readline/2021-01/msg00011.html 2021-02-06 Tom Tromey <tom@tromey.com> * readline/signals.c (_rl_handle_signal): Add missing check for HAVE_POSIX_SIGNALS.
-rw-r--r--readline/ChangeLog5
-rw-r--r--readline/readline/signals.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/readline/ChangeLog b/readline/ChangeLog
index a8a1faf..c906062 100644
--- a/readline/ChangeLog
+++ b/readline/ChangeLog
@@ -1,5 +1,10 @@
2021-02-06 Tom Tromey <tom@tromey.com>
+ * readline/signals.c (_rl_handle_signal): Add missing check for
+ HAVE_POSIX_SIGNALS.
+
+2021-02-06 Tom Tromey <tom@tromey.com>
+
* Import readline 8.1.
2020-06-30 Tom Tromey <tom@tromey.com>
diff --git a/readline/readline/signals.c b/readline/readline/signals.c
index f9174ab8a..8fedc37 100644
--- a/readline/readline/signals.c
+++ b/readline/readline/signals.c
@@ -266,8 +266,10 @@ _rl_handle_signal (int sig)
case SIGQUIT:
#endif
+#if defined (HAVE_POSIX_SIGNALS)
if (block_sig)
sigprocmask (SIG_BLOCK, &set, &oset);
+#endif
rl_echo_signal_char (sig);
rl_cleanup_after_signal ();