Skip to content

Commit

Permalink
[libc] Fix sigset_t type definition (llvm#123277)
Browse files Browse the repository at this point in the history
The libc headers are C, not C++.
  • Loading branch information
frobtech authored Jan 17, 2025
1 parent 219beb7 commit 7710453
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libc/include/llvm-libc-types/sigset_t.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

// This definition can be adjusted/specialized for different targets and
// platforms as necessary. This definition works for Linux on most targets.
struct sigset_t {
typedef struct {
unsigned long __signals[__NSIGSET_WORDS];
};
} sigset_t;

#endif // LLVM_LIBC_TYPES_SIGSET_T_H
2 changes: 1 addition & 1 deletion libc/include/llvm-libc-types/struct_sigaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct sigaction {
void (*sa_handler)(int);
void (*sa_sigaction)(int, siginfo_t *, void *);
};
struct sigset_t sa_mask;
sigset_t sa_mask;
int sa_flags;
#ifdef __linux__
// This field is present on linux for most targets.
Expand Down

0 comments on commit 7710453

Please sign in to comment.