Skip to content

Commit

Permalink
Don’t use the recvmmsg dgram method on Android <5
Browse files Browse the repository at this point in the history
recvmmsg and sendmmsg were only added to Android’s C library in version 5, starting with API Level 21.

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #23754)

(cherry picked from commit 24109dc)
  • Loading branch information
fealebenpae authored and t8m committed Mar 22, 2024
1 parent 178ab8d commit f2de18a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crypto/bio/bss_dgram.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f2de18a

Please sign in to comment.