-
Notifications
You must be signed in to change notification settings - Fork 19
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
rust-lang/libc seems to have incorrect definition for sockaddr_in
#174
Comments
Uhm, I thought we had accounted for those definitions already… If we can find more issues in the bindings we could push everything through with one PR, otherwise it’s fine to just merge this one change directly to |
There's at least one more problem that I was planning on making an issue for: libctru changed the definition for hostent some time ago, and both |
yeah, we should create some patches to fix libc/std all at once. i'll try checking if other definitions are wrong |
uhh one problem: i found this: rust-lang/libc#2725, which is the PR that created this problem. how do we proceed? edit: for more info, this branch of mio adds Horizon OS support, and doesn't build without the extra bytes |
Wow, i had completely forgotten about that! Do we know whether the original “faulty checks” issue is still present? I’m a bit unsure on how to tackle this problem. Edit: we could turn off the checks in |
Opened the above-mentioned PR in Due to the usual disconnect between |
I also want to link to this small thread me and Ian had, since we discussed looking for alternatives to modifying the |
Was trying to get
mio
to build and run on the 3ds, using itspoll
backend, such that crates likereqwest
and the literal thousands of libraries that depend ontokio
'snet
feature would run, but i ran into this issue, just asking if it's to report to upstream, and if so, we should check whether other definitions are wrong, such that they can be fixed all at once:this is
sockaddr_in
in rust:https://github.com/rust-lang/libc/blob/a0f5b4b21391252fe38b2df9310dc65e37b07d9f/src/unix/newlib/horizon/mod.rs#L34-L38
and this is the devkitpro definition:
https://libctru.devkitpro.org/structsockaddr__in.html
pub struct sockaddr_in { pub sin_family: ::sa_family_t, pub sin_port: ::in_port_t, pub sin_addr: ::in_addr, + pub sin_zero: [::c_char; 8], }
The text was updated successfully, but these errors were encountered: