aboutsummaryrefslogtreecommitdiff
path: root/security/softether
diff options
context:
space:
mode:
authorKoichiro Iwao <meta@FreeBSD.org>2023-07-05 09:11:33 +0000
committerKoichiro Iwao <meta@FreeBSD.org>2023-07-05 09:11:33 +0000
commit57afac98ba83843ddce1a5b719af3e3861dfaed4 (patch)
tree30a4eb8406dc201038b829ff8ee3b0aa118f6476 /security/softether
parentb56d0bc41af79bf3a51f89249e96ec02b7fc464e (diff)
downloadports-57afac98ba83843ddce1a5b719af3e3861dfaed4.tar.gz
ports-57afac98ba83843ddce1a5b719af3e3861dfaed4.zip
Diffstat (limited to 'security/softether')
-rw-r--r--security/softether/files/patch-fix-build-llvm1627
1 files changed, 27 insertions, 0 deletions
diff --git a/security/softether/files/patch-fix-build-llvm16 b/security/softether/files/patch-fix-build-llvm16
new file mode 100644
index 000000000000..b5e782526231
--- /dev/null
+++ b/security/softether/files/patch-fix-build-llvm16
@@ -0,0 +1,27 @@
+diff --git src/Mayaqua/Unix.c src/Mayaqua/Unix.c
+index 2e8214a6..4fed394f 100644
+--- src/Mayaqua/Unix.c
++++ src/Mayaqua/Unix.c
+@@ -309,9 +309,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
+@@ -321,7 +323,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);