diff --git a/library/net.c b/library/net.c index 85c4e79909..9724c07d7f 100644 --- a/library/net.c +++ b/library/net.c @@ -227,7 +227,8 @@ int net_accept( int bind_fd, int *client_fd, void *client_ip ) { 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 ); #else int n = (int) sizeof( client_addr );