-
Couldn't load subscription status.
- Fork 478
Add support for Musl libc #798
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
base: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,6 +33,8 @@ | |
| #if __has_include(<sys/event.h>) | ||
| #define HAS_SYS_EVENT_H 1 | ||
| #include <sys/event.h> | ||
| #elif __has_include(<poll.h>) | ||
| #include <poll.h> | ||
| #else | ||
| #include <sys/poll.h> | ||
|
||
| #endif | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see why we're making this particular change. Musl (at least the copy I'm looking at) doesn't have
<sys/cdefs.h>, so wouldn't have tried to include it anyway.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Alpine
/usr/include/sys/cdefs.his present and it contains#warning usage of non-standard #include <sys/cdefs.h> is deprecated, which fails due to our usage of-Werror.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. I wonder if we can work out why we're including
<sys/cdefs.h>and just not do that anywhere.