1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-09-13 07:13:00 +03:00

Merge PR #1868: Fix build on __FreeBSD_version >= 140091 (LLVM 16)

This commit is contained in:
Davide Beatrici 2023-07-04 06:08:21 +02:00 committed by GitHub
commit 5633314981
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -244,9 +244,11 @@ OS_DISPATCH_TABLE *UnixGetDispatchTable()
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
@ -256,7 +258,7 @@ void UnixIgnoreSignalForThread(int sig)
Zero(&sa, sizeof(sa));
sa.sa_handler = NULL;
sa.sa_sigaction = signal_received_for_ignore;
sa.sa_sigaction = &signal_received_for_ignore;
sa.sa_flags = SA_SIGINFO;
sigemptyset(&sa.sa_mask);