Skip to content
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

use socklen_t instead of u32 for bind() parameter #593

Merged
merged 1 commit into from Mar 20, 2022

Conversation

trinity-1686a
Copy link
Contributor

Fix compilation on Android 32b, where socklen_t is i32. This changes nothing on almost all other platforms as their socklen_t is already u32.
Solarish and VxWorks are the two other exceptions, they both use c_uint as their socklen_t. For x86_64-sun-solaris and sparcv9-sun-solaris I was able to confirm c_uint is in fact a u32, so it worked before, and still works now.
For vxworks, I did not found a toolchain I could install with rustup to confirm whether it worked before, but anyway it should work now.

this fix compilation on Android 32b, where socklen_t is i32
Copy link
Member

@Dirbaio Dirbaio left a comment

Choose a reason for hiding this comment

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

Thank you!

bors r+

@Dirbaio
Copy link
Member

Dirbaio commented Mar 20, 2022

bors r+

???

@bors
Copy link
Contributor

bors bot commented Mar 20, 2022

Build succeeded:

@bors bors bot merged commit e587850 into smoltcp-rs:master Mar 20, 2022
@trinity-1686a trinity-1686a deleted the android32-socklen branch March 20, 2022 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants