Browse Source

Merge pull request #4925 from jasonKercher/fix-sigaction

Fix linux.rt_sigaction
gingerBill 5 months ago
parent
commit
ffef302543
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/sys/linux/sys.odin

+ 1 - 1
core/sys/linux/sys.odin

@@ -212,7 +212,7 @@ rt_sigreturn :: proc "c" () -> ! {
 /*
 /*
 	Alter an action taken by a process.
 	Alter an action taken by a process.
 */
 */
-rt_sigaction :: proc "contextless" (sig: Signal, sigaction: ^Sig_Action($T), old_sigaction: ^Sig_Action) -> Errno {
+rt_sigaction :: proc "contextless" (sig: Signal, sigaction: ^Sig_Action($T), old_sigaction: ^Sig_Action($U)) -> Errno {
 	// NOTE(jason): It appears that the restorer is required for i386 and amd64
 	// NOTE(jason): It appears that the restorer is required for i386 and amd64
 	when ODIN_ARCH == .i386 || ODIN_ARCH == .amd64 {
 	when ODIN_ARCH == .i386 || ODIN_ARCH == .amd64 {
 		sigaction.flags += {.RESTORER}
 		sigaction.flags += {.RESTORER}