summaryrefslogtreecommitdiff
path: root/libc/signal
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-23 14:42:02 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-23 14:42:02 +0000
commitba9a21b2fa45a29a9e3dff6e0b199d8da5059811 (patch)
tree3185ae6223c0143df31281f9584cce9a93cd0440 /libc/signal
parent1129cd16b42185f258fbe8d53a0fb11f1d530f42 (diff)
Get rid of nested warnings
Diffstat (limited to 'libc/signal')
-rw-r--r--libc/signal/sigintr.c5
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)