Fix a build failure where recvmmsg is available but not sendmmsg
authorMatt Caswell <matt@openssl.org>
Fri, 8 Sep 2023 14:26:40 +0000 (15:26 +0100)
committerHugo Landau <hlandau@openssl.org>
Mon, 11 Sep 2023 06:43:26 +0000 (07:43 +0100)
commit5d96106c43d5b4e2d97406e5d3934323ae5bd1b4
treeb06ebaa829c97d7e28de65d05a40a270cc546419
parentc499cbc3239e3ac93fa5acf85cec7ea7df116518
Fix a build failure where recvmmsg is available but not sendmmsg

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 https://github.com/openssl/openssl/pull/22036)
crypto/bio/bss_dgram.c