summaryrefslogtreecommitdiff
path: root/libphobos
diff options
context:
space:
mode:
Diffstat (limited to 'libphobos')
-rw-r--r--libphobos/ChangeLog5
-rw-r--r--libphobos/libdruntime/core/sys/posix/signal.d47
2 files changed, 42 insertions, 10 deletions
diff --git a/libphobos/ChangeLog b/libphobos/ChangeLog
index d3edfd3c29a..3791d4a5ef6 100644
--- a/libphobos/ChangeLog
+++ b/libphobos/ChangeLog
@@ -1,3 +1,8 @@
+2020-04-07 Stefan Liebler <stli@linux.ibm.com>
+
+ * libdruntime/core/sys/posix/signal.d:
+ Add struct sigaction_t for SystemZ.
+
2020-03-16 Iain Buclaw <ibuclaw@gdcproject.org>
PR d/92792
diff --git a/libphobos/libdruntime/core/sys/posix/signal.d b/libphobos/libdruntime/core/sys/posix/signal.d
index ed3985eee4d..5abcdac1355 100644
--- a/libphobos/libdruntime/core/sys/posix/signal.d
+++ b/libphobos/libdruntime/core/sys/posix/signal.d
@@ -575,24 +575,51 @@ else
version (CRuntime_Glibc)
{
- struct sigaction_t
+ version (SystemZ)
{
- static if ( true /* __USE_POSIX199309 */ )
+ struct sigaction_t
{
- union
+ static if ( true /* __USE_POSIX199309 */ )
+ {
+ union
+ {
+ sigfn_t sa_handler;
+ sigactfn_t sa_sigaction;
+ }
+ }
+ else
{
sigfn_t sa_handler;
- sigactfn_t sa_sigaction;
}
+ int __glibc_reserved0;
+ int sa_flags;
+
+ void function() sa_restorer;
+
+ sigset_t sa_mask;
}
- else
+ }
+ else
+ {
+ struct sigaction_t
{
- sigfn_t sa_handler;
- }
- sigset_t sa_mask;
- int sa_flags;
+ static if ( true /* __USE_POSIX199309 */ )
+ {
+ union
+ {
+ sigfn_t sa_handler;
+ sigactfn_t sa_sigaction;
+ }
+ }
+ else
+ {
+ sigfn_t sa_handler;
+ }
+ sigset_t sa_mask;
+ int sa_flags;
- void function() sa_restorer;
+ void function() sa_restorer;
+ }
}
}
else version (CRuntime_Musl)