aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ();