From 24109dca5a793d58c68a346db5b21746079ec317 Mon Sep 17 00:00:00 2001 From: Yavor Georgiev Date: Tue, 5 Mar 2024 19:10:03 +0100 Subject: =?UTF-8?q?Don=E2=80=99t=20use=20the=20recvmmsg=20dgram=20method?= =?UTF-8?q?=20on=20Android=20<5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit recvmmsg and sendmmsg were only added to Android’s C library in version 5, starting with API Level 21. Reviewed-by: Neil Horman Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/23754) --- crypto/bio/bss_dgram.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crypto/bio/bss_dgram.c b/crypto/bio/bss_dgram.c index c049883bf0..ebca756dfb 100644 --- a/crypto/bio/bss_dgram.c +++ b/crypto/bio/bss_dgram.c @@ -66,6 +66,10 @@ #undef NO_RECVMSG #define NO_RECVMSG # endif +# if defined(__ANDROID_API__) && __ANDROID_API__ < 21 +# undef NO_RECVMMSG +# define NO_RECVMMSG +# endif # if !defined(M_METHOD) # if defined(OPENSSL_SYS_WINDOWS) && defined(BIO_HAVE_WSAMSG) && !defined(NO_WSARECVMSG) # define M_METHOD M_METHOD_WSARECVMSG -- cgit v1.2.3