summaryrefslogtreecommitdiff
path: root/src/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index c0f9ae4424b..122fa247c39 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -2104,9 +2104,10 @@ gobble_input (expected)
#ifdef SIGIO
if (interrupt_input)
{
- SIGMASKTYPE mask = sigblockx (SIGIO);
+ SIGMASKTYPE mask;
+ EMACS_SIGBLOCKX (SIGIO, mask);
read_avail_input (expected);
- sigsetmask (mask);
+ EMACS_SIGSETMASK (mask, mask);
}
else
#endif