qnx: Add missing definitions for io-sock - #5469
Conversation
fbbe72e to
b32f2a1
Compare
b32f2a1 to
543e03a
Compare
There was a problem hiding this comment.
Looks reasonable enough to me but the target maintainers should review/test. Cc @flba-eb @gh-tr @jonathanpallant @japaric
@rustbot label +S-waiting-on-maintainer
| // https://github.com/freebsd/freebsd-src/blob/f0cf0b8266eef39b13917f7bed808daf6d6a2d3e/sys/netinet/in.h#L549 | ||
| pub struct ip_mreqn { | ||
| pub imr_multiaddr: in_addr, | ||
| pub imr_address: in_addr, | ||
| pub imr_ifindex: c_int, | ||
| } |
There was a problem hiding this comment.
Please put these links into the commit message, rather than in comments
There was a problem hiding this comment.
Updated! Also fixed the the in_addr fields to crate::in_addr since that's what the rest of the file is using
This comment has been minimized.
This comment has been minimized.
|
b539bb3 to
54be82a
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
33e91af to
53c3ebe
Compare
| //! * `x86_64-pc-qnx` | ||
| //! | ||
|
|
There was a problem hiding this comment.
Looks spurious
|
Also this is labled "fix" but this is just an API addition. For future reference we don't use conventional commits but instead use scoping, makes it much easier to get a changelog (no need to change it's just an FYI) |
a773b6b to
5702a8e
Compare
|
I would strongly advise against linking to the FreeBSD headers in the commit message. The only place to check these constants is in QNX SDP 8.0 and/or its online documentation, because whilst it might be based on FreeBSD, QNX could have changed any of these constants to suit their needs. Using
|
|
Should I remove the references to freeBSD then from the commit message? Mostly wanted to link to publicly available headers, but it's true that the SDP is the only source of truth here. |
|
Uh, scratch that. I didn't have |
Yeah, they should be in |
5702a8e to
7d219cf
Compare
|
Removed any references to FreeBSD from the commit message |
|
Thanks Jonathan for reviewing |
(cherry picked from commit 77e9b41) Backport of: rust-lang#5469
(cherry picked from commit 77e9b41) Backport of: rust-lang#5469
I'm currently working on getting socket2 to compile for QNX8 networking stack. This PR adds some missing network related structs and constants.