Module Name: src
Committed By: thorpej
Date: Wed Oct 27 01:11:35 UTC 2021
Modified Files:
src/sys/arch/sh3/include: signal.h
Log Message:
Make sigcontext13 visible only to _KERNEL. Make sigcontext visible only
to _LIBC and _KERNEL.
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/sh3/include/signal.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sh3/include/signal.h
diff -u src/sys/arch/sh3/include/signal.h:1.15 src/sys/arch/sh3/include/signal.h:1.16
--- src/sys/arch/sh3/include/signal.h:1.15 Tue Oct 26 16:16:35 2021
+++ src/sys/arch/sh3/include/signal.h Wed Oct 27 01:11:34 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: signal.h,v 1.15 2021/10/26 16:16:35 christos Exp $ */
+/* $NetBSD: signal.h,v 1.16 2021/10/27 01:11:34 thorpej Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1991 Regents of the University of California.
@@ -47,7 +47,7 @@ typedef int sig_atomic_t;
* to the handler to allow it to restore state properly if
* a non-standard exit is performed.
*/
-#if defined(__LIBC12_SOURCE__) || defined(_KERNEL)
+#if defined(_KERNEL)
struct sigcontext13 {
int sc_spc;
int sc_ssr;
@@ -75,8 +75,9 @@ struct sigcontext13 {
int sc_expevt; /* XXX should be above */
int sc_err;
};
-#endif
+#endif /* _KERNEL */
+#if defined(_LIBC) || defined(_KERNEL)
#define __HAVE_STRUCT_SIGCONTEXT
struct sigcontext {
int sc_spc;
@@ -106,6 +107,7 @@ struct sigcontext {
sigset_t sc_mask; /* signal mask to restore (new style) */
};
+#endif /* _LIBC || _KERNEL */
#endif /* _NETBSD_SOURCE */
#endif /* !_SH3_SIGNAL_H_ */