From ba9a21b2fa45a29a9e3dff6e0b199d8da5059811 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Mon, 23 Jan 2006 14:42:02 +0000 Subject: Get rid of nested warnings --- libc/signal/sigintr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libc/signal/sigintr.c') 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) -- cgit v1.2.3