From: Nicolás Bértolo Date: Fri, 8 May 2020 19:02:58 +0000 (-0300) Subject: Do not block SIGIO in platforms that don't have it. X-Git-Tag: emacs-28.0.90~2727^2~629 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=68fad7a8fc98d41284c4054dd7b53fbb0d990cba;p=emacs.git Do not block SIGIO in platforms that don't have it. * src/comp.c (comp--compile-ctxt-to-file): Add a preprocessor check to avoid blocking SIGIO in platforms that don't have it. Signed-off-by: Andrea Corallo --- diff --git a/src/comp.c b/src/comp.c index c9426d1990e..87b86ddba7f 100644 --- a/src/comp.c +++ b/src/comp.c @@ -3364,7 +3364,9 @@ DEFUN ("comp--compile-ctxt-to-file", Fcomp__compile_ctxt_to_file, sigemptyset (&blocked); sigaddset (&blocked, SIGALRM); sigaddset (&blocked, SIGINT); +#ifdef USABLE_SIGIO sigaddset (&blocked, SIGIO); +#endif pthread_sigmask (SIG_BLOCK, &blocked, &oldset); } emit_ctxt_code ();