-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
NetBSD 9.0 build fixes #3422
NetBSD 9.0 build fixes #3422
Conversation
Thanks! I assume that you've tested on NetBSD, including any relevant older versions. Please adjust either the author or the signed-off-by to placate the DCO check. |
Since this could break a “weird” platform that doesn't follow POSIX exactly, we shouldn't backport this. |
Please add a changelog entry file under |
Fixes Mbed-TLS#2310 Signed-off-by: nia <[email protected]>
Fixes building this program on NetBSD 9.0. Signed-off-by: nia <[email protected]>
Signed-off-by: nia <[email protected]>
1b76520
to
508e21c
Compare
@gilles-peskine-arm Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't confirm myself that the changes fix the issue on NetBSD, but I trust you tested that, the changes looks reasonable and unlikely to break anything on other platforms, so I'm approving this PR.
The failure of Mbed OS testing in the pr-merge job is unrelated to this PR (it's caused by changes to the Mbed OS importer). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code
@@ -0,0 +1,2 @@ | |||
Bugfix | |||
* Fix building library/net_sockets.c and the ssl_mail_client program on NetBSD. Contributed by Nia Alarie in #3422. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not going to reject the PR for this because it doesn't break any automation and we'll likely do a pass of reformatting when we prepare the release. But for future reference, please wrap changelog lines to 80 columns.
Can we have a new release please with this and #3423 included? |
Both will be in Mbed TLS 2.23.0 which is scheduled to be released today. |
_XOPEN_SOURCE
in specific files to get definitions ofgethostname
andsockaddr_storage
socklen_t
's definition. I'm not really happy adding to this since it's quite hacky/messy, but it seems like the least intrusive change I can make for now. (I'm not sure which platforms without socklen_t need special-casing).Fixes #2310
Backports: