mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
Merge PR #1868: Fix build on __FreeBSD_version >= 140091 (LLVM 16)
This commit is contained in:
commit
5633314981
@ -244,9 +244,11 @@ OS_DISPATCH_TABLE *UnixGetDispatchTable()
|
|||||||
return &t;
|
return &t;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *signal_received_for_ignore(int sig, siginfo_t *info, void *ucontext)
|
static void signal_received_for_ignore(int sig, siginfo_t *info, void *ucontext)
|
||||||
{
|
{
|
||||||
return NULL;
|
(void)sig;
|
||||||
|
(void)info;
|
||||||
|
(void)ucontext;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ignore the signal flew to the thread
|
// Ignore the signal flew to the thread
|
||||||
@ -256,7 +258,7 @@ void UnixIgnoreSignalForThread(int sig)
|
|||||||
|
|
||||||
Zero(&sa, sizeof(sa));
|
Zero(&sa, sizeof(sa));
|
||||||
sa.sa_handler = NULL;
|
sa.sa_handler = NULL;
|
||||||
sa.sa_sigaction = signal_received_for_ignore;
|
sa.sa_sigaction = &signal_received_for_ignore;
|
||||||
sa.sa_flags = SA_SIGINFO;
|
sa.sa_flags = SA_SIGINFO;
|
||||||
|
|
||||||
sigemptyset(&sa.sa_mask);
|
sigemptyset(&sa.sa_mask);
|
||||||
|
Loading…
Reference in New Issue
Block a user