Skip to content

Commit

Permalink
Rename sigaction duplicate type to sigaction_t on linux, following ot…
Browse files Browse the repository at this point in the history
…her platforms.
  • Loading branch information
andradei committed Sep 22, 2024
1 parent 10702f1 commit 5162c6c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/sys/posix/signal.odin
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,9 @@ when ODIN_OS == .Darwin {
SIGPOLL :: 29
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_flags: SA_Flags,
sa_mask: sigset_t,
Expand Down

0 comments on commit 5162c6c

Please sign in to comment.