summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2011-11-21 18:17:29 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2011-11-21 18:17:29 +0000
commit32480d976e5508ba30258e1e7ca8c53ba229083f (patch)
tree55aac3b5d5a6edf6875c93d3aaf2d70fbb605361 /sys/arch
parent41e021882c9c13b27f6f9be618f3f8533a82c47a (diff)
only pull reg.h in when __BSD_VISIBLE || __XPG_VISIBLE >= 420, as
on m88k, which is another architecture with structs visible inside sigcontext. for pirofti ok miod guenther
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sh/include/signal.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/sh/include/signal.h b/sys/arch/sh/include/signal.h
index c0565a5554a..69f218d1257 100644
--- a/sys/arch/sh/include/signal.h
+++ b/sys/arch/sh/include/signal.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: signal.h,v 1.2 2007/03/02 06:11:54 miod Exp $ */
+/* $OpenBSD: signal.h,v 1.3 2011/11/21 18:17:28 deraadt Exp $ */
/* $NetBSD: signal.h,v 1.12 2005/12/11 12:18:58 christos Exp $ */
/*
@@ -36,11 +36,12 @@
#define _SH_SIGNAL_H_
#include <sys/cdefs.h>
-#include <sh/reg.h>
typedef int sig_atomic_t;
#if __BSD_VISIBLE || __XPG_VISIBLE >= 420
+#include <sh/reg.h>
+
/*
* Information pushed on stack when a signal is delivered.
* This is used by the kernel to restore state following