Common: add explicit <signal.h> for BSDs after 3ed7435012

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
                   ^
This commit is contained in:
Jan Beich 2022-07-09 16:09:32 +00:00
parent dca637d8dc
commit 303efbc268

View File

@ -214,6 +214,8 @@ void UninstallExceptionHandler() {
#else
#include <signal.h>
static struct sigaction old_sa_segv;
static struct sigaction old_sa_bus;