From 695f263163eb2f911894fde61208f0982cf7d604 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 17 Dec 2005 05:02:19 +0000 Subject: Don't include cdefs.h when we are included from locore.s Problem noticed by deraadt@ --- sys/arch/sparc/include/signal.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'sys/arch/sparc/include/signal.h') 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 -#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_ */ -- cgit v1.2.3