Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/include Define __HAVE_STRUCT_SIGCONTEXT reg...



details:   https://anonhg.NetBSD.org/src/rev/5fd245e0efda
branches:  trunk
changeset: 990529:5fd245e0efda
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Oct 29 21:42:02 2021 +0000

description:
Define __HAVE_STRUCT_SIGCONTEXT regardless of its current visibility.

diffstat:

 sys/arch/powerpc/include/signal.h |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r 05c985784340 -r 5fd245e0efda sys/arch/powerpc/include/signal.h
--- a/sys/arch/powerpc/include/signal.h Fri Oct 29 21:31:29 2021 +0000
+++ b/sys/arch/powerpc/include/signal.h Fri Oct 29 21:42:02 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: signal.h,v 1.25 2021/10/27 18:20:08 christos Exp $     */
+/*     $NetBSD: signal.h,v 1.26 2021/10/29 21:42:02 thorpej Exp $      */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -37,6 +37,14 @@
 #ifndef _LOCORE
 #include <sys/featuretest.h>
 
+/*
+ * This is needed natively for 32-bit, and for 32-bit compatibility only
+ * in the 64-bit environment.
+ */
+#if !defined(__LP64__) || defined(_KERNEL)
+#define        __HAVE_STRUCT_SIGCONTEXT
+#endif
+
 typedef int sig_atomic_t;
 
 #ifndef __LP64__
@@ -56,7 +64,6 @@
 /*
  * struct sigcontext introduced in NetBSD 1.4
  */
-#define        __HAVE_STRUCT_SIGCONTEXT
 struct sigcontext {
        int sc_onstack;                 /* saved onstack flag */
        int __sc_mask13;                /* saved signal mask (old style) */



Home | Main Index | Thread Index | Old Index