From 4ae4accac55e5e0e1e1a2cf8efc93634f8bb82e1 Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Fri, 15 Sep 2023 02:55:28 +0000 Subject: [PATCH] ntdll: Fix leave_handler for FreeBSD and NetBSD. With recent changes leave_handler writes to some of its parameter's fields (via DS_sig and ES_sig) on FreeBSD and NetBSD - which fails since it is declared const. Accordingly strip const-ness. --- dlls/ntdll/unix/signal_x86_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ntdll/unix/signal_x86_64.c b/dlls/ntdll/unix/signal_x86_64.c index 71e23ae46fc..48b5b4d5de9 100644 --- a/dlls/ntdll/unix/signal_x86_64.c +++ b/dlls/ntdll/unix/signal_x86_64.c @@ -812,7 +812,7 @@ static inline ucontext_t *init_handler( void *sigcontext ) /*********************************************************************** * leave_handler */ -static inline void leave_handler( const ucontext_t *sigcontext ) +static inline void leave_handler( ucontext_t *sigcontext ) { #ifdef __linux__ if (fs32_sel && !is_inside_signal_stack( (void *)RSP_sig(sigcontext )) && !is_inside_syscall(sigcontext)) -- 2.11.4.GIT