Fix compile error in net.c with musl libc

fixes #278
This commit is contained in:
Manuel Pégourié-Gonnard 2015-10-05 12:16:06 +01:00
parent 2cf9696785
commit 27840e0d43
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,11 @@
PolarSSL ChangeLog
= Version 1.2.17 released 2015-10-xx
Bugfix
* Fix compile error in net.c with musl libc. Found and patch provided by
zhasha (#278).
= Version 1.2.16 released 2015-09-17
Security

View File

@ -268,7 +268,7 @@ 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) || \
defined(_SOCKLEN_T_DECLARED)
defined(_SOCKLEN_T_DECLARED) || defined(__DEFINED_socklen_t)
socklen_t n = (socklen_t) sizeof( client_addr );
#else
int n = (int) sizeof( client_addr );