diff options
author | Kai Ruhnau <Kai.Ruhnau@live.com> | 2018-07-19 17:41:15 +0200 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2018-07-19 08:41:15 -0700 |
commit | 07c4acd51410ff075ebfca4a202e721f50065333 (patch) | |
tree | 6a083b3b5b584187ed566c5767e9c706b2e0a5ac /src/pal | |
parent | 660d90405f322b0290170d1f947e53da484d81ad (diff) | |
download | coreclr-07c4acd51410ff075ebfca4a202e721f50065333.tar.gz coreclr-07c4acd51410ff075ebfca4a202e721f50065333.tar.bz2 coreclr-07c4acd51410ff075ebfca4a202e721f50065333.zip |
Use mcontext_t instead of sigcontext (#18983)
The type of uc_mcontext has always been `mcontext_t`, but earlier versions of Glibc just typedef'ed this to `sigcontext`.
Newer versions of Glibc (since 2.27) [introduced an explicit struct type](https://sourceware.org/git/?p=glibc.git;a=blobdiff;f=sysdeps/unix/sysv/linux/arm/sys/ucontext.h;h=192d1bdeac3e62e13110f68614f7af624047c3a9;hp=2abceef2a4ca9bbb6e42208eaee548228b041e5b;hb=4fa9b3bfe6759c82beb4b043a54a3598ca467289;hpb=5898f4548efdcd7c0fd437a74eeb80facc51a117) and now compilation fails.
Diffstat (limited to 'src/pal')
-rw-r--r-- | src/pal/src/arch/arm/signalhandlerhelper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pal/src/arch/arm/signalhandlerhelper.cpp b/src/pal/src/arch/arm/signalhandlerhelper.cpp index 4efecfc1c1..f4a1760cb7 100644 --- a/src/pal/src/arch/arm/signalhandlerhelper.cpp +++ b/src/pal/src/arch/arm/signalhandlerhelper.cpp @@ -59,7 +59,7 @@ void ExecuteHandlerOnOriginalStack(int code, siginfo_t *siginfo, void *context, #else size_t size = ALIGN_UP(sizeof(ucontext->uc_mcontext), 8); sp -= size / sizeof(size_t); - *(sigcontext *)sp = ucontext->uc_mcontext; + *(mcontext_t *)sp = ucontext->uc_mcontext; #endif // Switch the current context to the signal_handler_worker and the original stack |