-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[libc] Fix sigset_t type definition #123277
Conversation
The libc headers are C, not C++.
@llvm/pr-subscribers-libc Author: Roland McGrath (frobtech) ChangesThe libc headers are C, not C++. Full diff: https://github.com/llvm/llvm-project/pull/123277.diff 2 Files Affected:
diff --git a/libc/include/llvm-libc-types/sigset_t.h b/libc/include/llvm-libc-types/sigset_t.h
index 1f601488db4c39..8c4d3b49533db9 100644
--- a/libc/include/llvm-libc-types/sigset_t.h
+++ b/libc/include/llvm-libc-types/sigset_t.h
@@ -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
diff --git a/libc/include/llvm-libc-types/struct_sigaction.h b/libc/include/llvm-libc-types/struct_sigaction.h
index 4257cfecd643a4..b4d0c965a4c633 100644
--- a/libc/include/llvm-libc-types/struct_sigaction.h
+++ b/libc/include/llvm-libc-types/struct_sigaction.h
@@ -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.
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/11873 Here is the relevant piece of the build log for the reference
|
The libc headers are C, not C++.
The libc headers are C, not C++.