mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-11 01:25:41 +00:00
- Support for FreeBSD _SOCKLEN_T_DECLARED
This commit is contained in:
parent
43655f46b0
commit
394c56f854
|
@ -227,7 +227,8 @@ int net_accept( int bind_fd, int *client_fd, void *client_ip )
|
||||||
{
|
{
|
||||||
struct sockaddr_in client_addr;
|
struct sockaddr_in client_addr;
|
||||||
|
|
||||||
#if defined(__socklen_t_defined) || defined(_SOCKLEN_T)
|
#if defined(__socklen_t_defined) || defined(_SOCKLEN_T) || \
|
||||||
|
defined(_SOCKLEN_T_DECLARED)
|
||||||
socklen_t n = (socklen_t) sizeof( client_addr );
|
socklen_t n = (socklen_t) sizeof( client_addr );
|
||||||
#else
|
#else
|
||||||
int n = (int) sizeof( client_addr );
|
int n = (int) sizeof( client_addr );
|
||||||
|
|
Loading…
Reference in a new issue