diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2005-12-17 05:02:19 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2005-12-17 05:02:19 +0000 |
commit | 695f263163eb2f911894fde61208f0982cf7d604 (patch) | |
tree | d31a00b26ad1f0c032c705c5b77cfe092ab86473 /sys/arch | |
parent | 2609264b257ea7e187d9da4ad04bee7d7c68d5ad (diff) |
Don't include cdefs.h when we are included from locore.s
Problem noticed by deraadt@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc/include/signal.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/arch/sparc/include/signal.h b/sys/arch/sparc/include/signal.h index 22939c87553..8d98f56b107 100644 --- a/sys/arch/sparc/include/signal.h +++ b/sys/arch/sparc/include/signal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: signal.h,v 1.5 2005/12/14 21:46:31 millert Exp $ */ +/* $OpenBSD: signal.h,v 1.6 2005/12/17 05:02:18 millert Exp $ */ /* $NetBSD: signal.h,v 1.4 1996/02/01 22:32:35 mycroft Exp $ */ /* @@ -44,15 +44,12 @@ #ifndef _SPARC_SIGNAL_H_ #define _SPARC_SIGNAL_H_ +#ifndef _LOCORE #include <sys/cdefs.h> -#ifndef _LOCORE typedef int sig_atomic_t; -#endif #if __BSD_VISIBLE -#ifndef _LOCORE - /* * Information pushed on stack when a signal is delivered. * This is used by the kernel to restore state following @@ -73,6 +70,7 @@ struct sigcontext { int sc_g1; /* %g1 to restore */ int sc_o0; /* %o0 to restore */ }; +#endif /* __BSD_VISIBLE */ #else /* _LOCORE */ #define SC_SP_OFFSET 8 #define SC_PC_OFFSET 12 @@ -95,5 +93,4 @@ struct sigcontext { #define FPE_FLTOPERR_TRAP 0xd0 /* operand error */ #define FPE_FLTOVF_TRAP 0xd4 /* overflow */ -#endif /* __BSD_VISIBLE */ #endif /* !_SPARC_SIGNAL_H_ */ |