Module Name: src
Committed By: thorpej
Date: Fri Oct 29 21:42:02 UTC 2021
Modified Files:
src/sys/arch/powerpc/include: signal.h
Log Message:
Define __HAVE_STRUCT_SIGCONTEXT regardless of its current visibility.
To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/powerpc/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/powerpc/include/signal.h
diff -u src/sys/arch/powerpc/include/signal.h:1.25 src/sys/arch/powerpc/include/signal.h:1.26
--- src/sys/arch/powerpc/include/signal.h:1.25 Wed Oct 27 18:20:08 2021
+++ src/sys/arch/powerpc/include/signal.h Fri Oct 29 21:42:02 2021
@@ -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 sigcontext13 {
/*
* 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) */