-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add missing constants from unistd.h for newlib targets
#4811
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
Conversation
tgross35
left a comment
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.
Thanks for the fix, I have a few small nits here.
Could you also move these constants to src/new/newlib/unistd.rs? We're slowly migrating to a structure that follows the source closer.
0057679 to
8a4b635
Compare
|
Sure, I moved the definitions and changed them to match the source too. |
tgross35
left a comment
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.
LGTM, thank you!
(backport <rust-lang#4811>) (cherry picked from commit e654f3a)
(backport <rust-lang#4811>) (cherry picked from commit e654f3a)
(backport <rust-lang#4811>) (cherry picked from commit e654f3a)
Description
A new API was recently added to
std, and as a result a number of newlib-based targets are failing to build due to a missing definition for_SC_HOST_NAME_MAXfrom theunistd.hheader. This PR adds that missing constant along with a number of othersysconfsymbols that never made it into the crate for these targets.Sources
https://github.com/bminor/newlib/blob/master/newlib/libc/include/sys/unistd.h#L354-L512
Checklist
libc-test/semverhave been updated*LASTor*MAXareincluded (see #3131)
cd libc-test && cargo test --target mytarget);especially relevant for platforms that may not be checked in CI
@rustbot label +stable-nominated