diff options
Diffstat (limited to 'libc/signal/sigintr.c')
-rw-r--r-- | libc/signal/sigintr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/signal/sigintr.c b/libc/signal/sigintr.c index 022d185bc..a977e22de 100644 --- a/libc/signal/sigintr.c +++ b/libc/signal/sigintr.c @@ -25,13 +25,16 @@ libc_hidden_proto(sigaction) /* If INTERRUPT is nonzero, make signal SIG interrupt system calls (causing them to fail with EINTR); if INTERRUPT is zero, make system calls be restarted after signal SIG. */ +#ifdef SA_RESTART +extern sigset_t _sigintr attribute_hidden; /* Defined in signal.c. */ +#endif + int siginterrupt (sig, interrupt) int sig; int interrupt; { #ifdef SA_RESTART - extern sigset_t _sigintr attribute_hidden; /* Defined in signal.c. */ struct sigaction action; if (sigaction (sig, (struct sigaction *) NULL, &action) < 0) |