Skip to content

fix: add support for QNX8 - #670

Open
lambinoo wants to merge 1 commit into
rust-lang:masterfrom
lambinoo:fix-qnx-iosock-support
Open

fix: add support for QNX8#670
lambinoo wants to merge 1 commit into
rust-lang:masterfrom
lambinoo:fix-qnx-iosock-support

Conversation

@lambinoo

@lambinoo lambinoo commented Sep 4, 2026

Copy link
Copy Markdown

When working with socket2 on more modern QNX8 targets (with io-sock networking stack), I noticed the crate does not compile because of some missing cfgs, which are caused by this change in the rustc:
rust-lang/rust#158449

This PR requires some extra changes to be merged in the libc crate to actually work:
https://github.com/rust-lang/libc/pull/5469/changes

Notably, this change does not affect QNX7 with io-sock networking stack, which I think compiles but is quite broken. netinet headers include a lot of changes in io-sock (as they rebased on a new BSD version), so it's definitely using bad constants for some things.

@lambinoo lambinoo changed the title fix: add support for QNX8 / QNX7 io-sock fix: add support for QNX8 Sep 4, 2026

@Thomasdezeeuw Thomasdezeeuw left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes LGTM, but we'll have to wait on rust-lang/libc#5469 before we can merge this.

Maybe we want to add a CI job for QNX to catch this in future?

@lambinoo

lambinoo commented Sep 4, 2026

Copy link
Copy Markdown
Author

The QNX toolchain requires licenses. I'm not sure what's Blackberry's stand on providing free licenses for open-source projects. But that would be good for sure!

It is a Tier 3 target tho, so there's no project-wide mandate to keep this working

@Thomasdezeeuw

Copy link
Copy Markdown
Collaborator

We can do a cargo check job only as well.

@chansuke chansuke left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants