summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2006-01-08 14:20:18 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2006-01-08 14:20:18 +0000
commitffda04f8e11564281a841a13c14f2cff2da651e4 (patch)
treed4ea5727c4a6b279eed53272f3980935579fca52 /sys/arch/i386
parent3c930752e9a40bd93b629ef495c8398e8644d12b (diff)
Expose struct sigcontext, struct sigstat and struct sigaltstack for XPG4.2
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/include/signal.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/i386/include/signal.h b/sys/arch/i386/include/signal.h
index d8443d8c091..8229bd26c5c 100644
--- a/sys/arch/i386/include/signal.h
+++ b/sys/arch/i386/include/signal.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: signal.h,v 1.5 2005/12/14 21:46:30 millert Exp $ */
+/* $OpenBSD: signal.h,v 1.6 2006/01/08 14:20:17 millert Exp $ */
/* $NetBSD: signal.h,v 1.6 1996/01/08 13:51:43 mycroft Exp $ */
/*
@@ -44,7 +44,9 @@ typedef int sig_atomic_t;
* Get the "code" values
*/
#include <machine/trap.h>
+#endif
+#if __BSD_VISIBLE || __XPG_VISIBLE >= 420
/*
* Information pushed on stack when a signal is delivered.
* This is used by the kernel to restore state following
@@ -83,5 +85,5 @@ struct sigcontext {
#define sc_pc sc_eip
#define sc_ps sc_eflags
-#endif /* __BSD_VISIBLE */
+#endif /* __BSD_VISIBLE || __XPG_VISIBLE >= 420 */
#endif /* !_I386_SIGNAL_H_ */