-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Add MSG_WAITFORONE.try_into().unwrap()
to deal with different type signature on musl libc
#29369
Add MSG_WAITFORONE.try_into().unwrap()
to deal with different type signature on musl libc
#29369
Conversation
Why hasn't it been merged yet? See it's clear |
Can you please run |
Looks like this is failing on the audit check, which was fixed in #29587 -- could you rebase and try one more time? |
I'm so sorry, it looks like this needs one more rebase. Can you try that one more time and ping me so I can run CI right away? |
Thanks for your patience, all good finally! |
Problem
Related: #28156 , rust-lang/libc#2945
As mentioned in the related issues, due to musl changing the type signature of
recvmmsg
, solana-streamer cannot compile for targetx86_64-unknown-linux-musl
.Summary of Changes
Adding a
try_into().unwrap()
allows rustc to infer the arg type so that it works for both glibc and musl.Note that libc is in the process of making a breaking change for this, starting with deprecating the flags: rust-lang/libc#2963 . This change should just serve as a temporary workaround until that change lands.
Fixes #28156