aboutsummaryrefslogtreecommitdiff
path: root/signal/signal.h
diff options
context:
space:
mode:
Diffstat (limited to 'signal/signal.h')
-rw-r--r--signal/signal.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/signal/signal.h b/signal/signal.h
index 8691b68..11b6565 100644
--- a/signal/signal.h
+++ b/signal/signal.h
@@ -56,7 +56,7 @@ extern __sighandler_t __sysv_signal __P ((int __sig,
/* Set the handler for the signal SIG to HANDLER, returning the old
handler, or SIG_ERR on error.
By default `signal' has the BSD semantic. */
-#if !defined __USE_XOPEN || defined __USE_GNU
+#ifdef __USE_BSD
extern __sighandler_t signal __P ((int __sig, __sighandler_t __handler));
#else
/* Make sure the used `signal' implementation is the SVID version.
@@ -176,15 +176,8 @@ typedef __sigset_t sigset_t;
# define __need_timespec
# include <time.h>
-/* Type for data associated with a signal. */
-typedef union sigval
- {
- int sival_int;
- void *sival_ptr;
- } sigval_t;
-
/* Get the `siginfo_t' type plus the needed symbols. */
-# include <bits/siginfo.h>
+# include <bits/siginfo.h>
/* Clear all signals from SET. */
extern int sigemptyset __P ((sigset_t *__set));