Browse Source

Rename sigaction duplicate type to sigaction_t on linux, following other platforms.

Isaac Andrade 11 months ago
parent
commit
5162c6c506
1 changed files with 3 additions and 1 deletions
  1. 3 1
      core/sys/posix/signal.odin

+ 3 - 1
core/sys/posix/signal.odin

@@ -1172,7 +1172,9 @@ when ODIN_OS == .Darwin {
 	SIGPOLL   :: 29
 	SIGPOLL   :: 29
 	SIGSYS    :: 31
 	SIGSYS    :: 31
 
 
-	sigaction :: struct {
+	// NOTE: this is actually defined as `sigaction`, but due to the function with the same name
+	// `_t` has been added.
+	sigaction_t :: struct {
 		sa_handler:   proc "c" (Signal),
 		sa_handler:   proc "c" (Signal),
 		sa_flags: SA_Flags,
 		sa_flags: SA_Flags,
 		sa_mask: sigset_t,
 		sa_mask: sigset_t,