diff options
| author | Nicolás Bértolo | 2020-05-08 16:02:58 -0300 |
|---|---|---|
| committer | Andrea Corallo | 2020-05-20 16:36:42 +0000 |
| commit | 68fad7a8fc98d41284c4054dd7b53fbb0d990cba (patch) | |
| tree | be01324124f6780acc01b6f87b231ce42a256803 /src | |
| parent | f5ba60defbef2445243b513416c2c2f2b5766cd6 (diff) | |
| download | emacs-68fad7a8fc98d41284c4054dd7b53fbb0d990cba.tar.gz emacs-68fad7a8fc98d41284c4054dd7b53fbb0d990cba.zip | |
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 <akrl@sdf.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/comp.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, | |||
| 3364 | sigemptyset (&blocked); | 3364 | sigemptyset (&blocked); |
| 3365 | sigaddset (&blocked, SIGALRM); | 3365 | sigaddset (&blocked, SIGALRM); |
| 3366 | sigaddset (&blocked, SIGINT); | 3366 | sigaddset (&blocked, SIGINT); |
| 3367 | #ifdef USABLE_SIGIO | ||
| 3367 | sigaddset (&blocked, SIGIO); | 3368 | sigaddset (&blocked, SIGIO); |
| 3369 | #endif | ||
| 3368 | pthread_sigmask (SIG_BLOCK, &blocked, &oldset); | 3370 | pthread_sigmask (SIG_BLOCK, &blocked, &oldset); |
| 3369 | } | 3371 | } |
| 3370 | emit_ctxt_code (); | 3372 | emit_ctxt_code (); |