From 303efbc26818c7dd5e5ca26d1d8f127be256656e Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Sat, 9 Jul 2022 16:09:32 +0000 Subject: [PATCH] Common: add explicit for BSDs after 3ed74350129c Common/ExceptionHandlerSetup.cpp:298:6: error: no matching constructor for initialization of 'sigaltstack' if (sigaltstack(&signal_stack, nullptr)) { ^ ~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/signal.h:449:8: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 2 were provided struct __stack_t { ^ /usr/include/sys/signal.h:434:19: note: expanded from macro '__stack_t' #define __stack_t sigaltstack ^ /usr/include/sys/signal.h:449:8: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 2 were provided /usr/include/sys/signal.h:434:19: note: expanded from macro '__stack_t' #define __stack_t sigaltstack ^ /usr/include/sys/signal.h:449:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 2 were provided /usr/include/sys/signal.h:434:19: note: expanded from macro '__stack_t' #define __stack_t sigaltstack ^ --- Common/ExceptionHandlerSetup.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Common/ExceptionHandlerSetup.cpp b/Common/ExceptionHandlerSetup.cpp index df84d0b60c..5594f9a5ce 100644 --- a/Common/ExceptionHandlerSetup.cpp +++ b/Common/ExceptionHandlerSetup.cpp @@ -214,6 +214,8 @@ void UninstallExceptionHandler() { #else +#include + static struct sigaction old_sa_segv; static struct sigaction old_sa_bus;