Skip to content

Commit 7710453

Browse files
authored
[libc] Fix sigset_t type definition (llvm#123277)
The libc headers are C, not C++.
1 parent 219beb7 commit 7710453

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libc/include/llvm-libc-types/sigset_t.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
// This definition can be adjusted/specialized for different targets and
1515
// platforms as necessary. This definition works for Linux on most targets.
16-
struct sigset_t {
16+
typedef struct {
1717
unsigned long __signals[__NSIGSET_WORDS];
18-
};
18+
} sigset_t;
1919

2020
#endif // LLVM_LIBC_TYPES_SIGSET_T_H

libc/include/llvm-libc-types/struct_sigaction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ struct sigaction {
1717
void (*sa_handler)(int);
1818
void (*sa_sigaction)(int, siginfo_t *, void *);
1919
};
20-
struct sigset_t sa_mask;
20+
sigset_t sa_mask;
2121
int sa_flags;
2222
#ifdef __linux__
2323
// This field is present on linux for most targets.

0 commit comments

Comments
 (0)