Do not block SIGIO in platforms that don't have it.
authorNicolás Bértolo <nicolasbertolo@gmail.com>
Fri, 8 May 2020 19:02:58 +0000 (16:02 -0300)
committerAndrea Corallo <akrl@sdf.org>
Wed, 20 May 2020 16:36:42 +0000 (16:36 +0000)
* 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 <akrl@sdf.org>
src/comp.c

index c9426d1990e580011614a4d32f821cfec9324f9a..87b86ddba7f22cc6ec3bf1688ef91aad6cdb03bc 100644 (file)
@@ -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 ();