-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Fix a build failure where recvmmsg is available but not sendmmsg #22036
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
Conversation
Some old glibc versions have recvmmsg but not sendmmsg. We require both to use that functionality. Introduce a test to check we have a sufficiently recent version of glibc. Fixes openssl#22021
|
|
||
| # if defined(__GLIBC__) && defined(__GLIBC_PREREQ) | ||
| # if !(__GLIBC_PREREQ(2, 14)) | ||
| # undef NO_RECVMMSG |
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.
why the undef here? Its just going to get reset on line 61, no?
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.
To avoid the compiler complaining about it being redefined in the event it is already defined e.g. because OpenSSL was configured like this:
$ ./config -DNO_RECVMMSG
tom-cosgrove-arm
left a comment
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.
LGTM
|
This pull request is ready to merge |
|
Merged to master. Thank you. |
Some old glibc versions have recvmmsg but not sendmmsg. We require both to use that functionality. Introduce a test to check we have a sufficiently recent version of glibc. Fixes #22021 Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> (Merged from #22036)
|
@rainerjung confirmed this as working on the affected platforms. |
Some old glibc versions have recvmmsg but not sendmmsg. We require both to use that functionality. Introduce a test to check we have a sufficiently recent version of glibc.
Fixes #22021