diff --git a/libphobos/ChangeLog b/libphobos/ChangeLog index d3edfd3c29a9..3791d4a5ef65 100644 --- a/libphobos/ChangeLog +++ b/libphobos/ChangeLog @@ -1,3 +1,8 @@ +2020-04-07 Stefan Liebler + + * libdruntime/core/sys/posix/signal.d: + Add struct sigaction_t for SystemZ. + 2020-03-16 Iain Buclaw PR d/92792 diff --git a/libphobos/libdruntime/core/sys/posix/signal.d b/libphobos/libdruntime/core/sys/posix/signal.d index ed3985eee4d9..5abcdac13554 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; } - } - else - { - sigfn_t sa_handler; - } - sigset_t sa_mask; - int sa_flags; + int __glibc_reserved0; + int sa_flags; - void function() sa_restorer; + void function() sa_restorer; + + sigset_t sa_mask; + } + } + else + { + struct sigaction_t + { + 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; + } } } else version (CRuntime_Musl)