Module Name:    src
Committed By:   thorpej
Date:           Wed Oct 27 01:09:36 UTC 2021

Modified Files:
        src/sys/arch/arm/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.17 -r1.18 src/sys/arch/arm/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/arm/include/signal.h
diff -u src/sys/arch/arm/include/signal.h:1.17 src/sys/arch/arm/include/signal.h:1.18
--- src/sys/arch/arm/include/signal.h:1.17	Tue Oct 26 16:16:34 2021
+++ src/sys/arch/arm/include/signal.h	Wed Oct 27 01:09:36 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: signal.h,v 1.17 2021/10/26 16:16:34 christos Exp $	*/
+/*	$NetBSD: signal.h,v 1.18 2021/10/27 01:09:36 thorpej Exp $	*/
 
 /*
  * Copyright (c) 1994-1996 Mark Brinicombe.
@@ -66,7 +66,7 @@ typedef int sig_atomic_t;
  * a non-standard exit is performed.
  */
 
-#if defined(__LIBC12_SOURCE__) || defined(_KERNEL)
+#if defined(_KERNEL)
 struct sigcontext13 {
 	int	sc_onstack;		/* sigstack state to restore */
 	int	sc_mask;		/* signal mask to restore (old style) */
@@ -90,8 +90,9 @@ struct sigcontext13 {
 	unsigned int sc_svc_lr;
 	unsigned int sc_pc;
 };
-#endif /* __LIBC12_SOURCE__ || _KERNEL */
+#endif /* _KERNEL */
 
+#if defined(_LIBC) || defined(_KERNEL)
 #define	__HAVE_STRUCT_SIGCONTEXT
 struct sigcontext {
 	int	sc_onstack;		/* sigstack state to restore */
@@ -118,6 +119,7 @@ struct sigcontext {
 
 	sigset_t sc_mask;		/* signal mask to restore (new style) */
 };
+#endif /* _LIBC || _KERNEL */
 
 #endif /* !_LOCORE */
 

Reply via email to