summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2011-11-21 18:17:28 +0000
committerderaadt <deraadt@openbsd.org>2011-11-21 18:17:28 +0000
commita49760511712d1e938bfa41c1455af4a296d81a9 (patch)
tree97b77a4852a504ab66529060dbe41ba5764f250c
parentzap eol whitespace; (diff)
downloadwireguard-openbsd-a49760511712d1e938bfa41c1455af4a296d81a9.tar.xz
wireguard-openbsd-a49760511712d1e938bfa41c1455af4a296d81a9.zip
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
-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