mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 10:55:38 +01:00
Use socklen_t on Android and other POSIX-compliant system
Fixes #2977 Signed-off-by: okhowang(王沛文) <okhowang@tencent.com>
This commit is contained in:
parent
7829748cd4
commit
76158ce9b7
3
ChangeLog.d/android-socklen_t.txt
Normal file
3
ChangeLog.d/android-socklen_t.txt
Normal file
@ -0,0 +1,3 @@
|
||||
Bugfix
|
||||
* Use socklen_t on Android and other POSIX-compliant system
|
||||
|
@ -318,7 +318,7 @@ int mbedtls_net_accept( mbedtls_net_context *bind_ctx,
|
||||
|
||||
#if defined(__socklen_t_defined) || defined(_SOCKLEN_T) || \
|
||||
defined(_SOCKLEN_T_DECLARED) || defined(__DEFINED_socklen_t) || \
|
||||
defined(socklen_t)
|
||||
defined(socklen_t) || (defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L)
|
||||
socklen_t n = (socklen_t) sizeof( client_addr );
|
||||
socklen_t type_len = (socklen_t) sizeof( type );
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user