diff options
| author | thorpej <thorpej@NetBSD.org> | 2021-10-29 21:42:02 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2021-10-29 21:42:02 +0000 |
| commit | ac6fb2b79eb379385b3f032bd4af2dbd4bc310cd (patch) | |
| tree | 6f50c943b22a362bd95a7bbb749c04a923fd79d0 /sys/arch/powerpc/include | |
| parent | dc066b40856182b20fda039f1406ba0a97da6e7b (diff) | |
Define __HAVE_STRUCT_SIGCONTEXT regardless of its current visibility.
Diffstat (limited to 'sys/arch/powerpc/include')
| -rw-r--r-- | sys/arch/powerpc/include/signal.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/arch/powerpc/include/signal.h b/sys/arch/powerpc/include/signal.h index 8582ad6c48f..508b3e12b27 100644 --- a/sys/arch/powerpc/include/signal.h +++ b/sys/arch/powerpc/include/signal.h @@ -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) */ |
