hexagon: add missing constants and fix types for linux-musl#5042
Open
androm3da wants to merge 1 commit intorust-lang:mainfrom
Open
hexagon: add missing constants and fix types for linux-musl#5042androm3da wants to merge 1 commit intorust-lang:mainfrom
androm3da wants to merge 1 commit intorust-lang:mainfrom
Conversation
Add missing constants and fix type mismatches for hexagon-unknown-linux-musl, enabling the rustix crate to build. * Constants added to errno, syscalls, poll, fs, memory, termios * Type fixes (c_int -> tcflag_t): EXTPROC, FLUSHO, IEXTEN, TOSTOP * ipc_perm.__seq changed from c_ushort to c_int with proper __pad1/__pad2 fields to match hexagon musl headers.
androm3da
commented
Apr 2, 2026
Comment on lines
+60
to
+64
| if target.contains("hexagon") { | ||
| cc::Build::new() | ||
| .file("src/time64_shim.c") | ||
| .compile("time64_shim"); | ||
| } |
Contributor
Author
There was a problem hiding this comment.
This is a bit of an awkward hack - happy to consider another approach if there's a better way.
Contributor
There was a problem hiding this comment.
This will be resolved with #5040 right? If so, could this just be dropped until it makes it to nightly rustc? Shouldn't be terribly long.
Rest of the patch LGTM.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add missing constants and fix type mismatches for
hexagon-unknown-linux-musl, enabling the rustix crate to build.
Description
Sources
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